set samesite on google analytics cookies (#1358)

This commit is contained in:
Stefan Pratter
2023-03-20 13:06:50 +00:00
committed by GitHub
parent c1b13c5d53
commit baa4f0134f
+1 -1
View File
@@ -75,7 +75,7 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ GOOGLE_ANALYTICS_ID }}');
gtag('config', '{{ GOOGLE_ANALYTICS_ID }}', {cookie_flags: 'SameSite=None;Secure'});
</script>
{% endif %}