Disable tracking your own visits to your siteThis extension implements a simple insert tag to be placed on a regular page using some JavaScript to detect an existing integration of Google Analytics. It provides a two-button control for disabling and enabling Google Analytics, actually by setting/clearing a custom variable in Analytics commonly useful for segmented tracking. It permits to filter your Analytics to show all but your visits to your site. Integration is simple: - Create a regular page, make it visible but keep it excluded from any menu. Optionally you may have limited access on it by requiring frontend login.
- Add content element of type "text" and enter the following insert tag: {{ga_switch}}
- On behalf of Google: open your Analytics account's preferences, add filter of type "custom filter", excluding custom field with value/pattern "ga_notrack".
- Back in Contao, log off so GA code is actually embedded in your pages.
- Open created page and use control to disable tracking your site on used computer. Repeat this step for all other devices, browsers and domains you are used to check your own site. Though this might take some efforts it's a one time process, only!
- On having set up public page you may wish to hide that page after processing all your devices and make it public again on demand, only.
|