Skip to content

Commit

Permalink
feat: add matomo with partytown
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Nov 17, 2023
1 parent df4d404 commit 091ef02
Show file tree
Hide file tree
Showing 7 changed files with 310 additions and 282 deletions.
16 changes: 16 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,20 @@
<NuxtLayout>
<NuxtPage />
</NuxtLayout>

<script type="text/partytown">
var _paq = window._paq = window._paq || [];

_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);

(function() {
var u="https://matomo.akbal.dev/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
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>
</template>
Loading

0 comments on commit 091ef02

Please sign in to comment.