made matomo wait for user consent, moved to a separate script
This commit is contained in:
parent
23c5a5eefc
commit
fbf29736d3
18
index.html
18
index.html
@ -14,22 +14,8 @@
|
||||
crossorigin="anonymous"></script>
|
||||
<title>Mind Overflow : Home</title>
|
||||
|
||||
<!-- 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="//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);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
<script src="/scripts/policy-popup.js"></script>
|
||||
<script src="/scripts/matomo.js" type="text/javascript"></script>
|
||||
<script src="/scripts/policy-popup.js" type="text/javascript"></script>
|
||||
<!-- Scripts End -->
|
||||
|
||||
</head>
|
||||
|
@ -11,22 +11,8 @@
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="/scripts/arrow-fade.js"></script>
|
||||
|
||||
<!-- 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="//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);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
<script src="/scripts/policy-popup.js"></script>
|
||||
<script src="/scripts/matomo.js" type="text/javascript"></script>
|
||||
<script src="/scripts/policy-popup.js" type="text/javascript"></script>
|
||||
|
||||
</head>
|
||||
|
||||
|
@ -11,22 +11,8 @@
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="/scripts/arrow-fade.js"></script>
|
||||
|
||||
<!-- 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="//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);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
<script src="/scripts/policy-popup.js"></script>
|
||||
<script src="/scripts/matomo.js" type="text/javascript"></script>
|
||||
<script src="/scripts/policy-popup.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body onload="openPolicyPopup()">
|
||||
|
@ -11,22 +11,8 @@
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="/scripts/arrow-fade.js"></script>
|
||||
|
||||
<!-- 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="//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);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
<script src="/scripts/policy-popup.js"></script>
|
||||
<script src="/scripts/matomo.js" type="text/javascript"></script>
|
||||
<script src="/scripts/policy-popup.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body onload="openPolicyPopup()">
|
||||
|
1
scripts/matomo.js
Normal file
1
scripts/matomo.js
Normal file
@ -0,0 +1 @@
|
||||
// JavaScript Document
|
Reference in New Issue
Block a user