VeLiTi analytics
This commit is contained in:
10
assets/analytics.js
Normal file
10
assets/analytics.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//analytics.veliti.nl/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '3']);
|
||||||
|
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);
|
||||||
|
})();
|
||||||
@@ -225,6 +225,11 @@ function template_header($title, $selected = 'assets', $selected_child = 'view')
|
|||||||
$profile = $general_profile;
|
$profile = $general_profile;
|
||||||
$logout = $general_logout;
|
$logout = $general_logout;
|
||||||
|
|
||||||
|
$veliti_analytics = '';
|
||||||
|
if (veliti_analytics){
|
||||||
|
$veliti_analytics = '<script src="./assets/analytics.js"></script>';
|
||||||
|
}
|
||||||
|
|
||||||
echo <<<EOT
|
echo <<<EOT
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
@@ -238,6 +243,7 @@ echo <<<EOT
|
|||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.6.0/css/all.css">
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.6.0/css/all.css">
|
||||||
<script src="./assets/leaflet.js"></script>
|
<script src="./assets/leaflet.js"></script>
|
||||||
<script src="./assets/charts.js"></script>
|
<script src="./assets/charts.js"></script>
|
||||||
|
$veliti_analytics
|
||||||
</head>
|
</head>
|
||||||
<body class="admin">
|
<body class="admin">
|
||||||
<aside class="responsive-width-100 responsive-hidden">
|
<aside class="responsive-width-100 responsive-hidden">
|
||||||
|
|||||||
Reference in New Issue
Block a user