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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -