testing matomo

This commit is contained in:
Set Sakrecoer 2019-11-05 14:38:31 +01:00
parent 5dc95a5609
commit bd934552b8

View file

@ -16,6 +16,22 @@ body{
background: url('{{ page.image }}'); background: url('{{ page.image }}');
} }
</style> </style>
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://basspistol.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src='//cdn.matomo.cloud/basspistol.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head> </head>
<body> <body>
{% if page.collection == 'tracks' or page.url == '/music/' %} {% if page.collection == 'tracks' or page.url == '/music/' %}