Can someone help me with Google Analytics ?

Discussion in 'Google' started by Charlee22, Aug 2, 2007.

  1. #1
    Hello Guys,

    I am trying to get this Analytics thing to work and I get the first part of adding the tracking code to your site, but for ecommerece site they want you to add additional code, but I am not understand that part of the instruction.

    What are they talking about below !!

    Enabling E-Commerce Tracking

    The first step of tracking e-commerce transactions is to enable e-commerce reporting for your website's profile. To enable e-commerce reporting, please follow these steps:

    Log in to your account.
    Click Edit next to the profile you'd like to enable.
    On the Profile Settings page, click edit next to Main Website Profile Information.
    Change the E-Commerce Website radio button from No to Yes.

    Receipt Page Format
    The second step is to ensure that the tracking code is included in the receipt page in the standard fashion. This may be done using a server side include, or other template driver, or can simply be hand-coded into your HTML code:

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct="UA-xxxx-x";
    urchinTracker();
    </script>

    Next, somewhere in the receipt below the tracking code, the following lines need to be written by your engine. Everything in brackets should be replaced by actual values, as described in the Parameter Reference, below.

    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
    [total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
    [quantity] </textarea>
    </form>

    Finally, the utmSetTrans function must be called after the form is submitted in order to record the transaction. This can be most easily accomplished through a body onLoad event within the opening <body> tag:

    <body onLoad="javascript:__utmSetTrans()">


    If anybody has any idea, please let me know.
    Thnaks
    Charlee
     
    Charlee22, Aug 2, 2007 IP
  2. Charlee22

    Charlee22 Guest

    Messages:
    235
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nobody has implemented anylitics on their site ! !
     
    Charlee22, Aug 6, 2007 IP
  3. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #3
    this code is given for the placement on the forms of your e-commerce or shopping forms where usually people fill in the order and submit payment this code will keep a track of the visitors or this can be coded behind the lead forms as well...

    I hope thing is clear to you...
     
    infogle, Aug 6, 2007 IP
  4. Charlee22

    Charlee22 Guest

    Messages:
    235
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't fully understand this part:

    Next, somewhere in the receipt below the tracking code, the following lines need to be written by your engine. Everything in brackets should be replaced by actual values, as described in the Parameter Reference, below.

    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
    [total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
    [quantity] </textarea>
    </form>

    Finally, the utmSetTrans function must be called after the form is submitted in order to record the transaction. This can be most easily accomplished through a body onLoad event within the opening <body> tag:

    <body onLoad="javascript:__utmSetTrans()">


    Is this second part of code simply added under the basic google analytics tracking code?

    or is there more to it!
     
    Charlee22, Aug 6, 2007 IP