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 puzzles is how to collect extremely useful fields, such as customer IDs, as they are not available by default in the Google Analytics 4 report interface. With the new custom tag template, you can enter these values into GTAG, write them to dataLayer and use them as custom settings in Google Analytics 4. To sequence the tag, open Google Analytics 4: Settings and go to Advanced Settings -> Tag Sequencing. If you’ve defined custom fields using the “Fields to define” option in your tag settings, you can also add those fields to the fields to get a table. It’s not as easy as with CustomTask, but it gives you an extra advantage: 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.