1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

don't use cookies

This commit is contained in:
Lukas Winkler 2020-07-13 11:33:14 +02:00
parent 6833d952f9
commit c82413cf31
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -2,6 +2,7 @@ export default class MatomoTracker {
init() {
if (typeof _paq === 'undefined') { // should only occur with hot reloading
let _paq = _paq || [];
_paq.push(['disableCookies']);
_paq.push(['enableHeartBeatTimer']);
if (process.env.NODE_ENV === "production") {
_paq.push(["setDoNotTrack", true]);