From 5fb2b5e2eba586cc96ca291b0a10ed72677fd0d0 Mon Sep 17 00:00:00 2001 From: drzackyll Date: Thu, 23 Apr 2020 15:30:48 -0400 Subject: [PATCH 1/2] Disables tracking for local development --- etools-piwik-analytics.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etools-piwik-analytics.html b/etools-piwik-analytics.html index f33becd..13e9880 100644 --- a/etools-piwik-analytics.html +++ b/etools-piwik-analytics.html @@ -21,6 +21,10 @@ // _paq array initialization and tracking script var _paq = _paq || []; + // disables tracking for local development + if (SITE_ID === '6') { + _paq.push(['requireConsent']); + } _paq.push(["trackPageView"]); _paq.push(['trackAllContentImpressions']); _paq.push(["enableLinkTracking"]); From fd471906d752d2288092481e5410bdbe464f0f41 Mon Sep 17 00:00:00 2001 From: drzackyll Date: Fri, 24 Apr 2020 11:25:36 -0400 Subject: [PATCH 2/2] Adds version number to package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 253da14..e2a8063 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "etools-piwik-analytics", + "version": "1.0.12", "devDependencies": { "eslint": "^3.19.0", "eslint-config-google": "^0.7.0",