Write Client ID – To use this information you need to

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.

Written by

Steven has over 12 years of internet experience, from design, to programming to internet marketing. It's his background in branding and marketing that led him to the path of protecting his clients reputation online, a specialized field that he has received years of training. When he is not researching the latest online marketing trends, you can find Austin meeting with clients and working to deliver businesses the results they need.