Verified Commit 457b1141 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

minor bugs

parent fdf4d3ff
<p>
<a href="privacyPolicy">Privacy Policy</a>
(<span id="gdpr-result-text"></span> <a href="javascript: showCookieBanner();">change</a>)
(<span id="gdpr-result-text"></span> - <a href="javascript: showCookieBanner();">change</a>)
</p>
/* Matomo global variable
note: most code has been inspired from:
https://edps.europa.eu/sites/edp/modules/features/edpsweb_cookies/js/cookies-popup.js
*/
var _paq = window._paq || _paq || [];
/*
getCookie: retrieve a cookie that has been set.
inspired from https://www.w3schools.com/js/js_cookies.asp
*/
......@@ -24,7 +28,6 @@ function getCookie(cname) {
/* loadMatomo: load the tracking code of the matomo instance */
function loadMatomo() {
if (settings.siteID > 0) {
var _paq = window._paq || _paq || [];
var u = settings.matomoURL;
_paq.push(['setSiteId', settings.siteID]);
_paq.push(['setTrackerUrl', u + 'matomo.php']);
......@@ -86,10 +89,7 @@ $( document ).ready(function() {
jQuery(this).blur();
// if the lap_cookie_agree is already set to one, do not load matomo again
lapCookieAgree = getCookie('lap_cookie_agree');
if (lapCookieAgree != '1'){
loadMatomo();
}
loadMatomo();
setResultText(true);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment