Localhost tracking in Google Analytics in Google Tag Manager

I am having trouble tracking Google Analytics on localhost with Google Tag Manager. I can see in the API for Google Analytics ( https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#localhost ), all I need to do is set cookieDomain to zero. I did not find this option in Google Tag Manager. Does anyone know how to do this?

+7
source share
1 answer

The documentation in question is about Universal Analytics (a new version of the GA API).

To solve this problem, you have two options:

1) Using the traditional "Google Analytics" tag, under "Advanced Settings"> "Domains and Directories"> "Domain Name":

none 

2) Or switch to the "Universal Analytics" tag in the Google Manager tag, configure the necessary fields in "Advanced Settings"> "Cookie Settings"> "Cookie Domain":

 none 

In both cases, this option must be disabled before the site starts.

+3
source

All Articles