fixed matomo console errors

This commit is contained in:
Bea 2020-07-10 12:38:12 +02:00
parent c2f5f4941c
commit 419c6bd12f
5 changed files with 18 additions and 4 deletions

View File

@ -14,7 +14,7 @@
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<title>Mind Overflow : Home</title> <title>Mind Overflow : Home</title>
<script src="/scripts/matomo.js" type="text/javascript"></script> <script src="/scripts/matomoData.js" type="text/javascript"></script>
<script src="/scripts/policy-popup.js" type="text/javascript"></script> <script src="/scripts/policy-popup.js" type="text/javascript"></script>
<!-- Scripts End --> <!-- Scripts End -->

View File

@ -11,7 +11,7 @@
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="/scripts/arrow-fade.js"></script> <script src="/scripts/arrow-fade.js"></script>
<script src="/scripts/matomo.js" type="text/javascript"></script> <script src="/scripts/matomoData.js" type="text/javascript"></script>
<script src="/scripts/policy-popup.js" type="text/javascript"></script> <script src="/scripts/policy-popup.js" type="text/javascript"></script>
</head> </head>

View File

@ -11,7 +11,7 @@
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="/scripts/arrow-fade.js"></script> <script src="/scripts/arrow-fade.js"></script>
<script src="/scripts/matomo.js" type="text/javascript"></script> <script src="/scripts/matomoData.js" type="text/javascript"></script>
<script src="/scripts/policy-popup.js" type="text/javascript"></script> <script src="/scripts/policy-popup.js" type="text/javascript"></script>
</head> </head>

View File

@ -11,7 +11,7 @@
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="/scripts/arrow-fade.js"></script> <script src="/scripts/arrow-fade.js"></script>
<script src="/scripts/matomo.js" type="text/javascript"></script> <script src="/scripts/matomoData.js" type="text/javascript"></script>
<script src="/scripts/policy-popup.js" type="text/javascript"></script> <script src="/scripts/policy-popup.js" type="text/javascript"></script>
</head> </head>

14
scripts/matomoData.js Normal file
View File

@ -0,0 +1,14 @@
// JavaScript Document
var _paq = window._paq || [];
// require user consent before processing data
_paq.push(['requireConsent']);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//admin.mind-overflow.net/matomo/";
_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=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();