]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/matomo.js
Restore previous position of signup background
[rails.git] / app / assets / javascripts / matomo.js
index f259b135808c1ff0f9760636b5605f27ded9f7a6..7d147a55cfb3b36dc21ccd8929526d8ff5d2967e 100644 (file)
@@ -14,6 +14,19 @@ if (OSM.MATOMO) {
           matomoTracker.setUserId(OSM.user.toString());
         }
 
+        if (OSM.MATOMO.visitor_cookie_timeout) {
+          matomoTracker.setVisitorCookieTimeout(OSM.MATOMO.visitor_cookie_timeout);
+        }
+
+        if (OSM.MATOMO.referral_cookie_timeout) {
+          matomoTracker.setReferralCookieTimeout(OSM.MATOMO.referral_cookie_timeout);
+        }
+
+        if (OSM.MATOMO.session_cookie_timeout) {
+          matomoTracker.setSessionCookieTimeout(OSM.MATOMO.session_cookie_timeout);
+        }
+
+        matomoTracker.setSecureCookie(true);
         matomoTracker.trackPageView();
         matomoTracker.enableLinkTracking();