Skip to content

Commit

Permalink
Merge pull request #15 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Fix gtag cookie settings
  • Loading branch information
adamlaki committed Aug 29, 2023
2 parents d795265 + 8f6d620 commit 573bd0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ if (getCookie('cone-cookie-law-analytics') === 'accepted') {
window.dataLayer = window.dataLayer || [];

gtag('js', new Date());
gtag('config', coneGtagId);
gtag('config', coneGtagId, {
'cookie_domain': window.location.hostname,
'cookie_flags': 'SameSite=None;Secure'
});
}

0 comments on commit 573bd0d

Please sign in to comment.