Verified Commit 269f3391 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

add individual parts of matomo mechanism

parent ecdd2142
<div id="lap-cookies-banner" class="presentation-banner">
<div class="banner-intro">
<div class="close-button">
<a class="lap-refuse">
<i class="fa fa-times" aria-hidden="true"></i>
<div class="banner-img">
<img src="" type="image/svg+xml"/>
<div class="banner-title">This website needs some cookies and similar means to function.</div>
<div class="banner-text">If you permit us, we will use those means to collect data on your visits for aggregated
statistics to improve our service.
<div class="banner-buttons">
<a class="btn lap-accept">Accept cookies for aggregated statistics</a>
<a class="btn lap-refuse">No thanks, only technically necessary cookies</a>
<a class="btn lap-cookies-more" href="privacy-policy">More information</a>
\ No newline at end of file
const settings = {
expires: "180",
matomoURL: "",
siteID: "8", //you get this siteID by sending an email to
accept_all_text: "Aggregate statistics cookies accepted",
only_necessary_text: "Only necessary cookies accepted",
doNotTrack_text: "Do Not Track is enabled",
cookieName: "lap",
bots: /bot|crawler|spider|crawling/i,
timeout_hidebanner: "500",
<script type='text/javascript'>
var _paq = window._paq || [];
/* tracker methods like 'setCustomDimension' should be called before 'trackPageView' */
(function() {
var u='';
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '${matomoID}']);
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 src=""></script>
<script src=""></script>
<link rel="stylesheet" type="text/css" href="" />
<div class="bottomPrivacy">
<a href="privacy-policy">Privacy Policy</a>
(<span id="doNotTrack-text"><span id="gdpr-result-text"></span> - <a href="javascript: showBanner();">change</a></span>)
\ No newline at end of file
Supports Markdown
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