Skip to content

Commit

Permalink
Adjust GA-Example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikdro authored May 9, 2018
1 parent 0ebcc3a commit a55bb56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ Afterwards, you can listen to the `kd-cookieconsent` event in JavaScript to en-/
document.addEventListener("kd-cookieconsent", function (e) {
if (e.detail === 'enable-cookies') {
//Enable your cookies here
//For Google Analytics: window['ga-disable-UA-<YOUR-SITE-CODE>'] = false;
//For Google Analytics:
window['ga-disable-UA-<YOUR-SITE-CODE>'] = false;
} else if (e.detail === 'disable-cookies') {
//Disable your cookies here
//For Google Analytics: window['ga-disable-UA-<YOUR-SITE-CODE>'] = true;
//For Google Analytics:
window['ga-disable-UA-<YOUR-SITE-CODE>'] = true;
}
});
```
Expand Down

0 comments on commit a55bb56

Please sign in to comment.