From 95e128c8dc36413aff947cd67c0ac49a5b6e1373 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 10 Feb 2021 08:00:29 +0000 Subject: [PATCH] feat: support new Google Analytics cookie requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- wowchemy/layouts/partials/marketing/google_analytics.html | 1 + 1 file changed, 1 insertion(+) diff --git a/wowchemy/layouts/partials/marketing/google_analytics.html b/wowchemy/layouts/partials/marketing/google_analytics.html index be8c5c88..658b1d29 100644 --- a/wowchemy/layouts/partials/marketing/google_analytics.html +++ b/wowchemy/layouts/partials/marketing/google_analytics.html @@ -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);