Add an option for Matomo Fix #991
This commit is contained in:
parent
6e93f6d766
commit
573b0fb0e1
|
|
@ -4424,7 +4424,11 @@ tarteaucitron.services.matomocloud = {
|
||||||
this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
|
this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
tarteaucitron.addScript('https://cdn.matomo.cloud/matomo.js', '', '', true, 'defer', true);
|
if (tarteaucitron.user.matomoCustomJSPath === undefined) {
|
||||||
|
tarteaucitron.addScript('https://cdn.matomo.cloud/matomo.js', '', '', true, 'defer', true);
|
||||||
|
} else {
|
||||||
|
tarteaucitron.addScript(tarteaucitron.user.matomoCustomJSPath, '', '', true, 'defer', true);
|
||||||
|
}
|
||||||
|
|
||||||
// waiting for Matomo to be ready to check first party cookies
|
// waiting for Matomo to be ready to check first party cookies
|
||||||
var interval = setInterval(function () {
|
var interval = setInterval(function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue