Set ga cookie domain to same as site

This commit is contained in:
James Allen 2018-03-19 17:06:02 +00:00
parent 3e65d6ff59
commit 10aa4a29ca

View file

@ -48,7 +48,7 @@ html(itemscope, itemtype='http://schema.org/Product')
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', '#{gaToken}', 'sharelatex.com');
ga('create', '#{gaToken}', '#{settings.cookieDomain.replace(/^\./, "")}');
ga('send', 'pageview');
- else
script(type='text/javascript').