add matomo tracking

This commit is contained in:
Tao Bojlen 2018-10-10 11:40:52 +01:00
parent c8ab3f3810
commit f741a3ea47
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
1 changed files with 36 additions and 18 deletions

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
@ -19,9 +20,25 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://stats.taocloud.online/";
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '2']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js'; s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
<title>fediverse.space</title>
</head>
<body>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
@ -36,5 +53,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</body>
</html>