Commit 72ab11e0 authored by Manuel Raaf's avatar Manuel Raaf

Matomo hinzugefügt

parent 327640c5
......@@ -94,6 +94,21 @@ $action = isset($_GET['action']) ? $_GET['action'] : null;
// <script type="text/javascript" src="functions/js/browse.js"></script>
} else {
echo '<script type="text/javascript" src="functions/js/functions_publicVersion.js"></script>';
echo '<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push([\'trackPageView\']);
_paq.push([\'enableLinkTracking\']);
(function() {
var u="//webstats.badw.de/";
_paq.push([\'setTrackerUrl\', u+\'matomo.php\']);
_paq.push([\'setSiteId\', \'4\']);
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+\'matomo.js\'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->';
}
?>
<script type="text/javascript" src="functions/js/ajax.js"></script>
......@@ -103,8 +118,11 @@ $action = isset($_GET['action']) ? $_GET['action'] : null;
</head>
<body>
<?php
if ($isPublicUser) {
echo '<noscript><p><img src="//webstats.badw.de/matomo.php?idsite=4&amp;rec=1" style="border:0;" alt="" /></p></noscript>';
}
include("functions/php/navigation.php");
$userMail = "";
readUserInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment