Skip to content

Commit

Permalink
Merge pull request #30 from unicef-polymer/disable-localhost-poly1
Browse files Browse the repository at this point in the history
Disables tracking for local development
  • Loading branch information
drzackyll authored Apr 24, 2020
2 parents 616d1c0 + fd47190 commit 3a3d23b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etools-piwik-analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,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"]);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "etools-piwik-analytics",
"version": "1.0.12",
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-google": "^0.7.0",
Expand Down

0 comments on commit 3a3d23b

Please sign in to comment.