How to check Google Analytics tags

5,011 views

Published on

A simple guide on how to check Google Analytics tracking image requests.

This helps you understand the key parameters in the image request to verify, based on the tags that you use in your Google Analytics tags.

Published in: Technology, Business
3 Comments
3 Likes
Statistics
Notes
  • In Slide 5, you have mentioned the index for the custom variable, is that zero based index (i.e., does 0 mean first custom variable, 1 mean 2nd custom variable, etc.)??? I have 5 custom variables that i can use at max, and i am trying to catch the first, second and fifth custom variables, so I am using it like this.. 8(accountid*userid*5!commonvariable)9(' + AccountId + '*' + UserId + '*5!'+CommonVariable+')11(2*2*5!2)')
    But I am seeing 'commonvariable' as CustomVariable 3 in Google Analytics. Please respond.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • hahaha... I've modified your doc!!!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi Yuhui.

    Saw your post while reading about GA. Thank you for this helpful post. :)

    Jaja (Ph)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
5,011
On SlideShare
0
From Embeds
0
Number of Embeds
44
Actions
Shares
0
Downloads
0
Comments
3
Likes
3
Embeds 0
No embeds

No notes for slide

How to check Google Analytics tags

  1. 1. How to check Google Analytics tags Prepared by Balasingam-Chow Yu Hui HTTP monitoring programs: - Charles, Fiddler – use with Windows / Internet Explorer - HttpFox – Firefox add-on This documentation uses HttpFox. Consult your HTTP monitoring program’s help to identify how to obtain similar settings there.1. Start HttpFox.2. Press “Start”.3. Filter HttpFox to only display HTTP requests/responses that contains “_utm”4. Click on the “Query String” tab.5. Make sure that your browser does not block cookies from the domain name that you are checking. a. Google Analytics uses first-party cookies, e.g. if you are checking www.my-wonderful-site.com, GA’s cookies will be recorded for “my-wonderful-site.com”6. For every tag: in the “Query String” tab’s window, check the following: Parameter Value utmhn Hostname / domain name as specified in the URL of the page utmac GA website profile ID a. If there is Campaign tracking – i.e. tags using “utm_source”, “utm_medium”, “utm_campaign”, “utm_content” or “utm_term” in the URL Parameter Value utmcsr “utm_source” value in the URL utmcmd “utm_medium” value in the URL utmccn “utm_campaign” value in the URL utmctr “utm_term” value in the URL utmcct “utm_content” value in the URL7. Page tags – i.e. tags using “_trackPageview(‘<tag>’)” a. Open the page.
  2. 2. b. In HttpFox, look for the HTTP response item from GA  click on it. If the page has more than one call to “_trackPageview()”, then you should see a corresponding HTTP response item for each call. c. In the “Query String” tab’s window, check the following: Parameter Value utmp “<tag>” If no tag was specified, then should match the URL of the page without the domain name. d. If there are Custom Variables – i.e. tags using “_setCustomVar (‘<index>’, ’<name>’, ’<value>’, ’<optional scope>’)” i. In the “Query String” tab’s window, check the following: Parameter Value utme “8(<name>)9(<value>)11(<scope>)” utmp “<tag>” If no tag was specified, then should match the URL of the page without the domain name. If there are more than one _setCustomVar() calls, then each _setCustomVar’s <name> and <value> will be appended within the “utme” parameter’s value, separated by a ‘*’, i.e. “8(<name 1>*<name 2>*…)9(<value 1>*<value 2>*…)11(<scope 1>*<scope 2>*…)” Only non-default scopes are shown in the “utme” parameter’s value. If you don’t use the indices sequentially, then an offset is indicated for the first non- sequential index. The offset is in the format “<index>!”. For example, if you use indices 2, 3 and 5, then the “utme” parameter’s value will be: “8(2!<name 1>*<name 2>*5!<name 3>)9(2!<value 1>*<value 2>*5!<value 3>)11(2!<scope 1>*<scope 2>*5!<scope 3>)”8. Event tags – i.e. tags using “_trackEvent(‘<category>’,’<action>’,’<optional label>’,’<optional value>’) a. Click the link. b. In HttpFox, look for the HTTP response item from GA  click on it. If the page has more than one call to “_trackEvent()”, then you should see a corresponding HTTP response item for each call.
  3. 3. c. In the “Query String” tab’s window, check the following: Parameter Value utmt “event” utme “5(<category>*<action>*<optional label>*<optional value>)” utmp “<tag>” If no tag was specified, then should match the URL of the page without the domain name. If you use Custom Variables with Events, then both tags’ values will be reflected together in the “utme” parameter, e.g. “5(<category>*<action>*<optional label>*<optional value>)8(<name 1>)9(<value 1>)”9. E-commerce transaction – i.e. tags using “_addTrans(‘<order ID>’, ‘<affiliation>’, ‘<total transaction>’, ‘<tax>’, ‘<shipping cost>’, ‘<city>’, ‘<state>’, ‘<country>’)” a. Finish the transaction on the order confirmation page. This page should also have a call to “_addItem()” and “_trackTrans()”. b. In HttpFox, look for the HTTP response item from GA for the transaction  click on it. There should only be one call to “_addTrans()” per page. c. In the “Query String” tab’s window, check the following: Parameter Value utmt “tran” utmtid “<order ID>” utmtst “<affiliation>” utmtto “<total transaction>” utmttx “<tax>” utmtsp “<shipping cost>” utmtci “<city>” utmtrg “<state>” utmtco “<country>”10. E-commerce items – i.e. tags using “_addItem(‘<order ID>’, ‘<SKU>’, ‘<product name>’, ‘<product category>’, ‘<price>’, ‘<quantity>’)” a. Finish the transaction on the order confirmation page. This page should also have a call to “_addTrans()” and “_trackTrans()”. b. In HttpFox, look for the HTTP response item from GA for each item  click on it.
  4. 4. If there is more than one call to “_addItem()”, then you should see a corresponding HTTP response item for each call.c. In the “Query String” tab’s window, check the following:Parameter Valueutmt “item”utmtid “<order ID>”utmipc “<SKU>”utmipn “<product name>”utmiva “<product category>”utmipr “<price>”utmiqt “<quantity>”Reference:http://code.google.com/apis/analytics/docs/tracking/gaTrackingTroubleshooting.html#gifParameters

×