From 10aa4a29caa21dc1ff3757f480e6742f817e7265 Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 19 Mar 2018 17:06:02 +0000 Subject: [PATCH] Set ga cookie domain to same as site --- services/web/app/views/layout.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/layout.pug b/services/web/app/views/layout.pug index 151df0b0ac..cb717030c4 100644 --- a/services/web/app/views/layout.pug +++ b/services/web/app/views/layout.pug @@ -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').