To use this information, you need to create a custom event trigger for the gtagApiGet event, as well as data level variables for each of the fields whose value you want to use. One of the biggest challenges is introducing very useful fields, such as customer ID, because they are not available by default in the Google Analytics 4 report interface. With the new custom tag template, you can now enter these values into GTAG, write them to dataLayer, and use them as custom settings, such as in Google Analytics 4. To add a tag to a sequence, open Google Analytics 4: Tag and Roll Settings for Advanced Settings -> Tag Sequence. If you’ve defined custom fields using the “Fields to define” option in your Settings tag, you can also add those fields to the fields to get the table. It’s not as easy as with CustomTask, but it gives you the added advantage that since the data is written to the DataLayer, you can use it with other tags, not just with Google scripts. Finally, if you want to send these values to Google Analytics 4, you can do so. For custom fields, such as customer ID, the former makes more sense; for event-specific fields, the latter may make more sense. First, go to Templates in the Google Tag Manager UI and find the GTAG GET API in the template gallery. Unfortunately, GA4, in all its wisdom, requires that all numeric fields be converted to numbers, so the client ID is rewritten twice. One of the biggest omissions, at least for now, in Google Analytics 4 is CustomTask.
Pricing Plans | Members Section
Hours of operation: M - F 10am to 6pm
Preguntas? Se habla Español: