Google Analytics - Utma Cookie

Card Puncher Data Processing

About

The Utma cookie is one of the Ga cookie that fulfill the role of cookie identifier

The __utma cookie is used to distinguish

Format

The cookie is created when the javascript library executes and no existing __utma cookies exists. The cookie is updated every time data is sent to Google Analytics.

utma=67809543.1161459517.1575879169.1576068631.1576087033.11

where:

  • 67809543, the first number is the domain hash
  • 1161459517.1575879169 is the client id
  • 1576068631, the fourth number is the epoch timestamp (in second) of the previous session
  • 1576087033, the fifth number is the epoch timestamp (in second) of the current session
  • 11, the last number is the number of session. If you don't have any interaction with the website for more than one minute, a new session is created.

Storage

It's stored as a first-party cookie with a two-year expiration

How to read it programmatically ?

cookie_key = "__utma";
regexp = new RegExp("(?:(?:^|.*;\\s*)"+cookie_key+"\\s*\\=\\s*([^;]*).*$)|^.*$");
var utmaValue = parent.document.cookie.replace(regexp, "$1");
console.log('Your utma value is '+utmaValue);
utmas = utmaValue.split('.');
console.log('Initial Visit was at: '+(new Date(1000*utmas[2])));
console.log('Previous Visit was at: '+(new Date(1000*utmas[3])));
console.log('Current Visit was at:  '+(new Date(1000*utmas[4])));
console.log('Your number of visit is:  '+utmas[5]);





Recommended Pages
Cookie Devtool
Browser - Cookie

HTTP cookies management in the client side (browser) via javascript. Cookie are one way to store data in the browser. document.cookie is a property of the browser document that returns the HTTP cookies...
Card Puncher Data Processing
Google Analytics (ga)

from Google ga() is tracking snippet. It's implemented as a javascript global function known as the command queue If the ga() command queue receives a command it doesn't recognize, it simply ignores...
Card Puncher Data Processing
Google Analytics - Client Id (cid) - Anonymous Id

ClientId is the anonymous user id in Google analytics If a cookie does not exist for the specified domain, a client ID is generated and stored in the cookie The client id is stored in the utma...
Card Puncher Data Processing
Google Analytics - Cookies

used in google analytics Their prefixed are called utm because of . Google analytics comes fro Urchin. ... ...
Card Puncher Data Processing
Google Analytics - User

A user in Google analytics See If the utma cookie does not exist for the specified domain, a client ID is generated and stored in the cookie, and the user is identified as new. If a cookie...
Basket Analysis Joke
Web Analytics - Page views (PV)

id The unique ID of the page or screen call itself received_at When the page or screen call was received sent_at When the page or screen call was triggered by the user a collaborative recommandation...



Share this page:
Follow us:
Task Runner