Can someone point me in the right direction?
I want to grab the medium from the "__UTMZ" cookie that is generated by Google. I currently have the old "ga.js" code in the headers on my ecommerce store to generate the cookie when a visitor reaches my site. I also have code that reads in the cookie on the successful transaction page and saves the order information with the cookie string to a log file.
It seems to work fine, in development. However, after implementing this on my live site. I am getting blank information for the analytic cookie. I get the order information but there's nothing where the cookie string should be. It worked when I was doing it myself but I was either getting "not-set" or "(none)", which I figured was because I reaching the site directly.
Am I going about this wrong? I really just want the medium from the order, as in whether it was an organic search or cpc. That's it.