assets/js/gdpr.js in jekyll-theme-lcsb-default-0.4.0 vs assets/js/gdpr.js in jekyll-theme-lcsb-default-0.4.1

- old
+ new

@@ -13,9 +13,14 @@ _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setDoNotTrack', 1]); _paq.push(['trackPageView']); _paq.push(['setIgnoreClasses', ['no-tracking', 'colorbox']]); _paq.push(['enableLinkTracking']); + + // set the cookie domain an + if(!(settings.cookieDomain == "*")) { + _paq.push(["setCookieDomain", settings.cookieDomain]); + } var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.type = 'text/javascript'; g.defer = true; \ No newline at end of file