Skip to content

Commit

Permalink
feat: statistiky návštěvnosti pomocí analytiky OpenAltu
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkCZ committed Nov 23, 2022
1 parent a7c6197 commit 1416d90
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h5>
</footer>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="js/google-analytics.js"></script>
<script src="js/analytics.js"></script>

</body>
</html>
11 changes: 11 additions & 0 deletions js/analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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://analytics.openalt.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '17']);
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);
})();
9 changes: 0 additions & 9 deletions js/google-analytics.js

This file was deleted.

0 comments on commit 1416d90

Please sign in to comment.