Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics missing __utmz cookie

I have universal analytics installed on my website, and want to parse the __utmz cookie to get referral info. However, I never see this cookie set.

Has something changed? Any reason this isn't set?

I do see the _ga cookie when I browse my site, and I see the __utmz cookie in my browser cache if I go to other sites.

I checked out the docs, and don't see any reference to this changing recently, so a bit stumped.

like image 958
steve cook Avatar asked Sep 04 '13 03:09

steve cook


1 Answers

Universal Analytics doesn't create any __utm* cookies.

However, you can use Universal Analytics code (analytics.js) AND the traditional code (ga.js) simultaneously on your site. This will allow you to populate your UA profile and scrape the values from __utmz.

like image 147
Andrew C Avatar answered Oct 31 '22 10:10

Andrew C