From 78757bd0ed21f3213e86938f5ee2f00fd2483d88 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Sat, 19 Jan 2019 20:38:37 -0500 Subject: [PATCH] set domain of cookie to be the domain of the google analytics cookie which is . or .lbry.io in this case. --- view/template/layout/_analytics_footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/template/layout/_analytics_footer.php b/view/template/layout/_analytics_footer.php index 5a6c4039..b1a80b65 100644 --- a/view/template/layout/_analytics_footer.php +++ b/view/template/layout/_analytics_footer.php @@ -14,7 +14,7 @@ ga(function(tracker) { let date = new Date(); date.setTime(date.getTime() + (30 * 24 * 60 * 60 * 1000)); - document.cookie = 'ga_cid=' + tracker.get('clientId') + '; expires=' + date.toUTCString() + '; path=/'; + document.cookie = 'ga_cid=' + tracker.get('clientId') + '; expires=' + date.toUTCString() + '; path=/' + '; domain=' + tracker.get('cookieDomain'); }); !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js');