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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -