mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-09-02 02:05:11 +00:00
Merge pull request #927 from lbryio/use_client_id
set domain of cookie to be the domain of the google analytics cookie …
This commit is contained in:
commit
761fc54cb8
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue