Pay specific attention to Disable Ad Personalization features, which are most typically implemented with a "config" line.When global settings need to be applied to all configured properties, the "set" command should be used in order to apply to all Measurement IDs and/or Property IDs, including those implemented via connected site tags.As such, the IP address is automatically masked with the standard event to Google Analytics 4 property ("G-XXXXXXXX"). IP masking is standardized to "true" and not configurable in a Google Analytics 4 property.However, there are a few differences between these settings for Universal Analytics and Google Analytics 4 properties. You do this via "config" or "set" directives in gtag.js.īoth Universal Analytics ("UA-XXXXXXXX") and Google Analytics 4 ("G-XXXXXXXX") properties support implementing these config settings via gtag.js. You can configure the basic gtag.js snippet to control data collection settings such as IP masking, cookie customizations, and Google Signals. If you have both a gtag.js tag and a GTM container implemented on your page, the gtag.js tag must be placed above the GTM container for connected site tags to work. AND you have admin access to the Universal Analytics property referenced by the ID in the snippet.However, you'd only encounter this situation if a Google Analytics 4 property has already been implemented.) (Connected site tags will also work if the existing gtag.js snippet is controlled by an Google Analytics 4 property. The existing gtag.js snippet on the page where you want to measure user interactions is "controlled" by a Universal Analytics property (i.e., the ID referenced in this line of the gtag.js snippet begins with "UA-"):.Both snippets have the following structure:Ġ3: window.dataLayer = window.dataLayer || Ġ4: function gtag()ĩ: Option 2: Turn on connected site tags The gtag.js snippets for a Universal Analytics property and for a Google Analytics 4 property are fundamentally the same. About the gtag.js snippet and property IDs
0 Comments
Leave a Reply. |