Skip to content
This repository was archived by the owner on Feb 12, 2021. It is now read-only.

Commit 7a0fddf

Browse files
committed
docs: adds matomo tracking to landing page
1 parent a428cc1 commit 7a0fddf

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/_includes/matomo.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Matomo -->
2+
<script type="text/javascript">
3+
var _paq = window._paq || [];
4+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
5+
_paq.push(['trackPageView']);
6+
_paq.push(['enableLinkTracking']);
7+
(function() {
8+
var u="https://matomo.ethereum.org/piwik/";
9+
_paq.push(['setTrackerUrl', u+'matomo.php']);
10+
_paq.push(['setSiteId', '21']);
11+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
12+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
13+
})();
14+
</script>
15+
<!-- End Matomo Code -->

docs/_layouts/default.html

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<meta name="theme-color" content="#157878">
1212
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
1313
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision }}">
14+
15+
{% include matomo.html %}
1416
</head>
1517
<body>
1618
<header class="page-header" role="banner">

0 commit comments

Comments
 (0)