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').