sakrecoer-mother-web/_includes/matomo.js

45 lines
2.3 KiB
JavaScript
Raw Permalink Normal View History

2020-11-30 17:37:02 +01:00
{% if page.url == '/404/' %}
//* Matomo *//
var _paq = window._paq = window._paq || [];
2020-07-21 11:05:32 +02:00
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
2020-11-30 17:37:02 +01:00
_paq.push(['setDocumentTitle', '404/URL = ' + encodeURIComponent(document.location.pathname+document.location.search) + '/From = ' + encodeURIComponent(document.referrer)]);
_paq.push(["setCookieDomain", "*.basspistol.com"]);
_paq.push(["setDomains", ["*.basspistol.org","*.basspistol.com","*.pauvrecoude.basspistol.com","*.paxnion.basspistol.com","*.radio.basspistol.com","*.sakrecoer.basspistol.com","*.sakrecoer.com","*.sethybowoy.basspistol.com","*.setto.basspistol.com","*.tfb.basspistol.com","*.v.basspistol.org"]]);
_paq.push(["enableCrossDomainLinking"]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://terminalnetwork.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{ site.matomo_site_id }}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src='https://cdn.matomo.cloud/terminalnetwork.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
//* End Matomo *//
{% else %}
//* Matomo *//
var _paq = window._paq = window._paq || [];
2020-07-21 11:05:32 +02:00
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
2020-11-30 17:37:02 +01:00
_paq.push(["setCookieDomain", "*.basspistol.com"]);
_paq.push(["setDomains", ["*.basspistol.org","*.basspistol.com","*.pauvrecoude.basspistol.com","*.paxnion.basspistol.com","*.radio.basspistol.com","*.sakrecoer.basspistol.com","*.sakrecoer.com","*.sethybowoy.basspistol.com","*.setto.basspistol.com","*.tfb.basspistol.com","*.v.basspistol.org"]]);
_paq.push(["enableCrossDomainLinking"]);
2020-07-21 11:05:32 +02:00
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://terminalnetwork.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
2020-11-30 17:37:02 +01:00
_paq.push(['setSiteId', '{{ site.matomo_site_id }}']);
2020-07-21 11:05:32 +02:00
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
2020-11-30 17:37:02 +01:00
g.type='text/javascript'; g.async=true; g.src='https://cdn.matomo.cloud/terminalnetwork.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
2020-07-21 11:05:32 +02:00
})();
2020-11-30 17:37:02 +01:00
//* End Matomo *//
{% endif %}