remove matomo tracking

This commit is contained in:
Jonas Leder 2021-06-17 11:40:50 +02:00
parent f4afafc29e
commit 8d453b2e03
4 changed files with 1 additions and 22 deletions

View file

@ -8,7 +8,6 @@ class Header extends HTMLElement {
<div class="header-homepage"> <div class="header-homepage">
<div class="align-holder" > <div class="align-holder" >
<h1>${pageTitle}</h1 > <h1>${pageTitle}</h1 >
<jl-matomo></jl-matomo>
</div > </div >
</div > </div >
<div class="header-separator header-separator-bottom " > <div class="header-separator header-separator-bottom " >

View file

@ -1,16 +0,0 @@
class Matomo extends HTMLElement {
constructor() {
super();
this.generateTrackImg();
}
async generateTrackImg(){
let trackURL = await (await fetch("/API/config.php?name=trackURL")).text()
this.innerHTML = `
<!-- Matomo Image Tracker-->
<img referrerpolicy="no-referrer-when-downgrade" src="${trackURL}" style="border:0" alt="" />
<!-- End Matomo -->
`;
}
}
customElements.define("jl-matomo", Matomo);

View file

@ -18,4 +18,3 @@ require("./customElements/contactMailButton");
require("./customElements/header"); require("./customElements/header");
require("./customElements/mainMenu"); require("./customElements/mainMenu");
require("./customElements/footer"); require("./customElements/footer");
require("./customElements/matomo");

View file

@ -7,9 +7,6 @@ switch ($configValue){
case "sitekey": case "sitekey":
echo($sitekey); echo($sitekey);
break; break;
case "trackURL":
echo($trackURL);
break;
default: default:
echo("notFound"); echo("notFound");
} }