1
0
Fork 0
mirror of https://github.com/Findus23/lw1.at.git synced 2024-09-16 12:13:44 +02:00

no cookies

This commit is contained in:
Lukas Winkler 2020-07-13 11:16:51 +02:00
parent 16e1f1ade4
commit 2f65a68df7
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -4,10 +4,11 @@ export default class MatomoTracker {
let _paq = _paq || [];
_paq.push(['setRequestMethod', 'POST']);
_paq.push(['enableHeartBeatTimer']);
_paq.push(['HeatmapSessionRecording::disableAutoDetectNewPageView']);
if (process.env.NODE_ENV === "production") {
_paq.push(["setDoNotTrack", true]);
}
_paq.push(['disableCookies']);
(function() {
let u = (process.env.NODE_ENV === "production") ? "https://matomo.lw1.at/" : "//localhost/piwik/";
_paq.push(['setTrackerUrl', u + ((process.env.NODE_ENV === "production") ? 'statistics.php' : 'piwik.php')]);