summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2019-01-05 12:50:36 -0700
committerAaron Ball <nullspoon@oper.io>2019-01-05 12:50:36 -0700
commit711cc4a794cce2dcae6d711a990a3a4e5e5e5d70 (patch)
treedc1895c36f2784aacbfe76c0248534fb4d85ed15 /res
parent76a5b57fc69a1d757bad585f7cba31a7ca374dcb (diff)
downloadoper.io-711cc4a794cce2dcae6d711a990a3a4e5e5e5d70.tar.gz
oper.io-711cc4a794cce2dcae6d711a990a3a4e5e5e5d70.tar.xz
header:Replace javascript tracking with image tracking
We don't track or even care about all the details javascript tracking gives us, plus it is javascript (yick). Replacing with the image tracker as this gives us the details we want while being very small.
Diffstat (limited to 'res')
-rw-r--r--res/header.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/res/header.php b/res/header.php
index d76d926..0b326d7 100644
--- a/res/header.php
+++ b/res/header.php
@@ -12,23 +12,11 @@ function friendlify_title($qs) {
<meta name="viewport" content = "user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="res/style.css" />
<title>oper.io<?php print(': ' . friendlify_title($_GET['p'])); ?></title>
- <!-- 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://oper.io/analytics/";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', '5']);
- 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 -->
</head>
<body>
+<!-- Matomo Image Tracker-->
+<img src="https://oper.io/analytics/piwik.php?idsite=5&amp;rec=1" style="border:0" alt="" />
+<!-- End Matomo -->
<div id="nav-header">
<a href="https://oper.io"><div id="nav-header-logo">&nbsp;</div></a>
<div id="nav-header-links">

Generated by cgit