"

_UTMZ Cookie Alternative with Google Tag Manager – Universal Analytics

The UTMZ cookie was for a long time a reliable cookie where you could find the source information of where the user came from. Unfortunately, this is going away with the introduction of Universal Analytics. We have build a quick script in GTM to bring you back the source information and even a little more. With our cookie solution you will have all the different referrers, utm_source and gclid information available in a cookie called source.

Download: https://measureschool.com/sourcecookie

Helpful Links:
http://www.quirksmode.org/js/cookies.html
https://github.com/dm-guy/utm-alternative
http://stackoverflow.com/questions/18604715/google-analytics-missing-utmz-cookie

GTM Live Workshops: https://measureschool.com/workshops
GTM Ressource Guide: https://measureschool.com/guide
Free GTM Beginner course: https://measureschool.com/emailcourse
Course: https://measureschool.com/course

RECOMMENDED MEASURE BOOKS: https://kit.com/Measureschool/recommended-measure-books

GEAR WE USED TO PRODUCE THIS VIDEO: https://kit.com/Measureschool/measureschool-youtube-gear

SHOW MORE...

10
Leave a Comment

avatar
4 Comment threads
6 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
JulianAdam Zedalex gJuda Adam Borrayo Recent comment authors
newest oldest most voted
Juda Adam Borrayo
Guest
Juda Adam Borrayo

Good stuff! Any kind of special implementation if we use a Tag Maanager container with tags for multiple websites? Seems this custom dimension shows up on main web page (www.apple.com and sub domains) but not on another, seperate url (www.orange.com, for ex.) Appreciate your always amazing content.

Julian
Guest

yes, you would need to have separate GTM containers for 2 domains or reprogram the Code to set the cookie on the correct domain.

alex g
Guest
alex g

Thanks for this. If our site has several subdomains, do we have to do anything so the cookie travels across subdomains and doesn’t get reset?

Adam Zed
Guest
Adam Zed

Hey Julian, what’s the value in appending the utm source and how would it show in GA? If we remove the appending feature will it break the code?

Julian
Guest

maybe check out our UTM Parameter video https://www.youtube.com/watch?v=MNOsldDS_pY

Juda Adam Borrayo
Guest
Juda Adam Borrayo

Good stuff! Any kind of special implementation if we use a Tag Maanager container with tags for multiple websites? Seems this custom dimension shows up on main web page (www.apple.com and sub domains) but not on another, seperate url (www.orange.com, for ex.) Appreciate your always amazing content.

Julian
Guest

yes, you would need to have separate GTM containers for 2 domains or reprogram the Code to set the cookie on the correct domain.

alex g
Guest
alex g

Thanks for this. If our site has several subdomains, do we have to do anything so the cookie travels across subdomains and doesn’t get reset?

Adam Zed
Guest
Adam Zed

Hey Julian, what’s the value in appending the utm source and how would it show in GA? If we remove the appending feature will it break the code?

Julian
Guest

maybe check out our UTM Parameter video https://www.youtube.com/watch?v=MNOsldDS_pY