Skip to content

Commit

Permalink
stats: add matomo tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Dec 17, 2023
1 parent bbb683d commit 1489bed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/.vuepress/layouts/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
<script setup>
import ParentLayout from '@vuepress/theme-default/layouts/Layout.vue'
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.gbdev.io/";
_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>

<ParentLayout>
<template #page-bottom>
<div class="my-footer">
Expand Down

0 comments on commit 1489bed

Please sign in to comment.