Many people doesn’t like to be tracked from Google Analytics. For privacy purposes you have to enable your site vitors with one click to be able to deactivate or disable google analytics tracking. There are many ways for an experienced users to do this:
- The second way is do not accept cookies from the website. Google analytics tracking is based on cookies, your google analytics is using
ga()or the pixel tracking function
The third solution is mandatory , if you have binding google analytics tracking in your website.
Here is the code that you have to add in the imprint or privacy page:
In the <
head> section add your google analytics code followed by the
The user will be able now to disable or stogpping google analytics tracking until the next cookies was deleted.
You are using also the
anonymizeIp function. Using this function is also a mandatory to protect the user privacy.
The result can you see using Firebug Add-ons in the Firefox browser or something similar:
For more information about google analytics privacy can you find more information here: GOOGLE ANALYTICS TERMS OF SERVICE
Demo on this site:
Disable Google Analytics