Google Analytics - ecommerce transactions tracking question

Discussion in 'Google' started by retSaMbew, Dec 21, 2006.

  1. #1
    Hello,

    Is anyone here experienced in tracking ecommerce transactions via Analytics?

    Here's my case

    Here's the php source for the order confirmation page

    ----------

    <?php
    session_start();
    $name = $_SESSION['name'];
    $order_amount=$_SESSION['order_amount'];
    ?>
    <title>Order Processed</title>
    <br>
    DEAR <?=$name?>!
    <br><br>
    THANK YOU FOR PLACING YOUR ORDER!
    <br><br>
    IN A FEW MOMENTS YOU WILL RECEIVE AN E-MAIL CONFIRMATION.
    <br><br>
    CLICK <a href="http://www.mysite.com">HERE</a> TO RETURN TO HOME
    PAGE
    <br>

    <script src="
    https://ssl.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-XXXXX-XX";
    urchinTracker();
    </script>

    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">UTM:T|||<?=$order_amount?>||||| </textarea>
    </form>
    <script type="text/Javascript">
    __utmSetTrans()
    </script>

    -------------------

    I made 3 test transactions yesterday and none of those has been
    recorded.
    What is the average time lag for an ecommerce transaction to be tracked?

    also php adds <input type="hidden" name="PHPSESSID"
    value=SESSIONIDVALUE /> to the form making it smth like

    <form style="display:none;" name="utmform"><input type="hidden"
    name="PHPSESSID" value="92dp0djftjsq07o2lcdhpbg8l2" />
    <textarea id="utmtrans">UTM:T|||69.99||||| </textarea>
    </form>

    can this somehow disrupt __utmSetTrans()?

    Anyone has a clue?

    Thanks for your time!

    RS
     
    retSaMbew, Dec 21, 2006 IP
  2. wisam74us

    wisam74us Well-Known Member

    Messages:
    1,059
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    168
    #2
    Same for me, I could track the number of sales but not the value of them, I am using Oscommerce with Google analytics module
     
    wisam74us, Dec 21, 2006 IP