mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 08:15:44 +00:00
feat: support new Google Analytics cookie requirements
Firefox console notice: Cookie “_ga” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute.
This commit is contained in:
1 parent
ebef2543c3
commit
95e128c8dc
1 file changed
+1
@@ -34,6 +34,7 @@
|
||||
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{$ga}}', {{$gtag_config|safeJS}});
|
||||
gtag('set', {'cookie_flags': 'SameSite=None;Secure'});
|
||||
|
||||
// Outbound link tracking.
|
||||
document.addEventListener('click', onClickCallback, false);
|
||||
|
||||
Reference in new issue
Block a user