javascript - __utma & __utmz cookies are not getting set in browser -
(function(i,s,o,g,r,a,m){i['googleanalyticsobject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new date();a=s.createelement(o), m=s.getelementsbytagname(o)[0];a.async=1;a.src=g;m.parentnode.insertbefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'ua-xxxxxx', {'sitespeedsamplerate': 100}); ga('send', 'pageview');
using code, __utma & __utmz cookies not getting set in browser. code appended in body.
__utma , __utmz cookies don't exist on current version of google analytics api (analytics.js aka universal analytics).
this normal instead uses cookie called _ga default.
see: https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage
Comments
Post a Comment