Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Added matomo script for SEO (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moeenahamd authored Dec 27, 2023
1 parent 67b7849 commit 6987a22
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@
{% endblock seo %}

{{ macros_head::favicons() }}
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://ark-builders.matomo.cloud/";
_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='//cdn.matomo.cloud/ark-builders.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

</head>
{% block body %}{% set page_class="home" %}{% endblock body %}
<body class="{{ page_class }}">
Expand Down

0 comments on commit 6987a22

Please sign in to comment.