mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 07:58:13 +01:00
add matomo
This commit is contained in:
parent
0331827b39
commit
186f2eed11
1 changed files with 22 additions and 0 deletions
|
@ -1739,6 +1739,28 @@ if (userID) {
|
|||
</script>
|
||||
<% } %>
|
||||
|
||||
<% if(secure) { %>
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
||||
_paq.push(["setDoNotTrack", true]);
|
||||
_paq.push(["disableCookies"]);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//data.poketube.fun/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '2']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<noscript><p><img src="//data.poketube.fun/matomo.php?idsite=2&rec=1" style="border:0;" alt="" /></p></noscript>
|
||||
<!-- End Matomo Code -->
|
||||
|
||||
<% } %>
|
||||
<% if(!IsOldWindows) { %>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue