]> git.openstreetmap.org Git - rails.git/commitdiff
Set secure flag for matomo cookies
authorTom Hughes <tom@compton.nu>
Thu, 8 Dec 2022 22:45:02 +0000 (22:45 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 8 Dec 2022 22:45:02 +0000 (22:45 +0000)
app/assets/javascripts/matomo.js

index a48d9477d90a2c36516989f88af0e871a5ed58fa..c89cfd3e77260a064e6c113bae32762b2be79575 100644 (file)
@@ -26,6 +26,7 @@ if (OSM.MATOMO) {
           matomoTracker.setSessionCookieTimeout(OSM.MATOMO.session_cookie_timeout);
         }
 
           matomoTracker.setSessionCookieTimeout(OSM.MATOMO.session_cookie_timeout);
         }
 
+        matomoTracker.setSecureCookie( true );
         matomoTracker.trackPageView();
         matomoTracker.enableLinkTracking();
 
         matomoTracker.trackPageView();
         matomoTracker.enableLinkTracking();