Analytics
6.3K members online now
6.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

How does __utmz survive from HTTPS to HTTP?

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Universal Analytics offers no easy way to access information that Classic Ananlytics keeps in the `__utmz` cookie. (Please correct me if I am wrong right here.) The only reason we are still using Classic Analytics is __utmz cookie.

 

I am currently writing a replacement for this cookie in Tag Manager which works fine… except when it doesn't, like in the scenario below:

 

1. Search for "a certain keyword" in Google.
2. Click a link to https://www.site.com/
3. Land on https://www.site.com
4. Get a cookie with the value "Source:google,MediumSmiley Surprisedrganic"
5. Click around the site — the cookie's value remains "Source:google,MediumSmiley Surprisedrganic"

 

So far so good.

 

6. Now click a link to http://blog.site.com (note http, not https)
7. Land on http://blog.site.com
8. The cookie's value is now "SourceSmiley Saddirect),MediumSmiley Sadnone)"

 

Why?

 

The script in charge of the cookie is instructed to ignore referrals from our own properties — specifically in order to preserve information about the external origins of sessions.

 

In the case of "from HTTPS to HTTP", however, the referrer is stripped, so the script correctly labels the visit as "SourceSmiley Saddirect),MediumSmiley Sadnone)".

 

Yet the information in __utmz cookie survives the same journey from HTTPS to HTTP.

 

How does it do it?

Thank you.

Re: How does __utmz survive from HTTPS to HTTP?

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

Re: How does __utmz survive from HTTPS to HTTP?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thank you.