66

What does it mean when you see things like:

?__utma=1.32168570.1258672608.1258672608.1259628772.2&__utmb=1.4.10.1259628772&

etc in the the url string?

Maybe it's simple, but I'm thinking it's something I'm not aware of because I see it every now and again.

4
  • 4
    See stackoverflow.com/questions/1720585/…
    – mjv
    Commented Dec 1, 2009 at 1:40
  • Ta, although I wonder what they were doing in the query string if they're cookies?
    – Richard
    Commented Dec 1, 2009 at 23:54
  • @Richard- a technique when cookies are disabled. Commented Nov 4, 2011 at 16:05
  • 2
    I voted to close this question because it is not a programming question and it is off-topic on Stack Overflow. Non-programming questions about your website should be asked on Webmasters. In the future, please ask questions like this there. Commented May 3, 2022 at 12:49

5 Answers 5

45

Here's a good link to explain them. They are cookies used by Google Analytics to track information on your website:

https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage#gajs

2
19

Your browser don't support cookies. That's the reason you see it in the url. In fact google use cookies __utma, __utmb, __utmc, __utmz to track information. When cookies are disabled - browser pass this information throught URL as GET param.

10

They are URL parameters, they pass information back to the web server.

protocol://username:password@server:port?parameterList#anchorName

Example:

http://stackoverflow.com:80/page?param1=value1&param2=value2

  • The #anchorName will skip you to a certain part of an HTML page
  • The parameterList portion is also called the query
  • The protocol portion is also called the scheme
  • The username:password part can be ommitted
  • The port will default to 80 if the protocol is HTTP and the port is not specified
  • If you don't specify the protocol in a web browser, it will default to HTTP.
  • You will often want to have a single page do multiple things. This is accomplished by accepting different parameters. These parameters will typically pass information to the server which will modify how the next page is displayed, or how another action is performed on the server
  • Sometimes URL parameters are replaced with nice looking URL paths. This is accomplished with newer web frameworks like ASP .NET MVC, Django, Ruby on Rails, etc...

There is a much more detailed description from what I gave in RFC 3986: Uniform Resource Identifier (URI): Generic Syntax.

1
  • 1
    Sorry @Richard I think I may have over generalized what you were asking, but I'll keep my answer here. Commented Dec 1, 2009 at 1:19
10

The __utma Cookie This cookie is what’s called a “persistent” cookie, as in, it never expires (technically, it does expire…in the year 2038…but for the sake of explanation, let’s pretend that it never expires, ever). This cookie keeps track of the number of times a visitor has been to the site pertaining to the cookie, when their first visit was, and when their last visit occurred. Google Analytics uses the information from this cookie to calculate things like Days and Visits to purchase.

The __utmb and __utmc Cookies The B and C cookies are brothers, working together to calculate how long a visit takes. __utmb takes a timestamp of the exact moment in time when a visitor enters a site, while __utmc takes a timestamp of the exact moment in time when a visitor leaves a site. __utmb expires at the end of the session. __utmc waits 30 minutes, and then it expires. You see, __utmc has no way of knowing when a user closes their browser or leaves a website, so it waits 30 minutes for another pageview to happen, and if it doesn’t, it expires.

[By Joe Teixeira]

9

It is related to google analytics... it's used for their tracking. Although I suspect Brian's answer answers what you were really asking...

3
  • 8
    Specifically UTM='Urchin Tracking Module'; google.com/urchin/index.html Commented Dec 1, 2009 at 1:10
  • 1
    I think I probably over generalized what the OP was asking. Commented Dec 1, 2009 at 1:17
  • 1
    I love how user generated questions are almost a rorschach test in themselves... :) Commented Dec 1, 2009 at 1:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.