Google Analytics Cookies (v2) Cheat Sheet by Jay Taylor
3 Comments
|
Add a Comment
|
PDF Download
|
Find:
__utma (Visitor cookie)
Each group is separated by a period character. All times stored are UNIX timestamps. For new visits the three times in this cookie will all be the same. __utmb (Session cookie)
Each group is separated by a period character. All times stored are UNIX timestamps. __utmc (Session cookie)
This cookie is deprecated due to session handling changes within Analytics, but is still set by ga.js. Sessions now only end when the __utmb cookie expires. |
__utmv (Custom Variable cookie)
Each group is separated by a period character. This cookie can only be created by using Google Analytics' deprecated _setVar() method. Calling this method sets this cookie and automatically sends the data to Google Analytics via a __utm.gif request. __utmmobile (Mobile Visitor cookie)
This cookie is only created by the Google Analytics mobile tracking SDK. It stores an ID generated by MD5 hashing several possible values, and then returning a substring of the result prefixed with '0x' - this serves as a unique visitor ID. |
__utmz (Campaign cookie)
Each group is separated by a period character. The campaign parameters are a single URL-encoded string, separated by pipe '|' characters. They can include: Cookie Lifetimes
* the __utmb cookie will only expire after thirty minutes of no interaction with Google Analytics, i.e.: idle time. |


Favourited by 6 Members:
Comments
Hi Jay,
I hoe you can help me cause i am really stumped, im trying to save into a lead database the info from the cookie, i tried with auto-tagging on from adwords and i get the campaign as "Not Set" i unlinked my Adwords from analytics and turned auto-tagging off and now i get all adwords clicks as "organic".. Can you help??
Hello! Sorry for the delayed reply - I haven't managed to check back in for a while.
When using autotagging, all of the campaign info gets stored in the encoded GCLID parameter generated by AdWords, the only info you'll be able to extract is the GCLID and the fact it's a CPC visit. If you disable auto-tagging you need to make sure that each of your destination URLs is manually tagged with UTM parameters identifying it as CPC - for example:
http://www.example.com/landing-page.html?utm_source=google&utm_medium=cpc&utm_campaign=promo&utm_term=keyword&utm_content=banner-adverts
Of those five parameters, utm_source, utm_medium and utm_campaign are mandatory, Google has documentation available on these though, if you search for Google URL Builder they have a tool up for generating manually tagged campaign URLs.
So to answer your question more directly - if you want to extract cookie for CPC data, you'll need to manually tag your URLs as above, auto-tagging won't give you that data in the Cookie!
Hope that helps, again sorry for the delay in replying :-)
Hey Jay,
in the Cookie Lifetimes section __umtv should be __utmv, shouldn't it?
Add a Comment
You are posting a reply. Cancel Reply.
Contents
An overview of the anatomy of the cookies set and used by Google Analytics.
Cheatographer
www.freshegg.com
More by Jay Taylor
Cheat Sheet Stats
Tags
Related (shares tags with):
Thumbnail