GA4 Integration via GTM

Creating Data Layer Variable

  • Log in to your GTM account.

  • Click on the Variables from the sidebar and then click on New button present in User-Defined Variables section.

  • Enter the title as CustomFit-Exp-Beh-String

  • Next, select the variable type as Data Layer Variable.

  • Then, provide the Data Layer Variable Name as customfit_exp_beh_string.

  • Set the Data Layer Version to Version 2.

  • Finally, set the Default value as 0 and click the Save button.

Creating Triggers

  • Click on the Triggers from the sidebar and then click on the New button.

  • Give the Trigger Name as CustomFit-Data-Push-GA4-Trigger.

  • Next, click on the Trigger Configuration and choose the Trigger type as Custom Event.

  • Enter the Event name as customfit-data-push-ga4.

  • Finally, click on the Save button.

Creating Tags

  • Click on the Tags from the sidebar and then click on the New button.

  • Give the Tag Name as CustomFit-Data-Push-GA4.

  • Next, click the Tag Configuration and choose Tag type as Google Analytics. In Google Analytics, select Google Analytics: GA4 Event option.

  • In the Measurement ID field, enter the Measurement ID of the GA4 account to which the data needs to be sent.

  • Enter the Event Name as experience_impression.

  • In the Event Parameters section, click on the Add row button. Give the Event Parameter as exp_variant_string and value as {{CustomFit-Exp-Beh-String}}.

  • Finally, click the Triggering section, and choose the Firing Triggers as CustomFit-Data-Push-GA4-Trigger. And Click on the Save button.

Enabling and Configuring GA4 in CustomFit.ai

GTM is now fully set up to capture your CustomFit.ai data. The next step is to forward this data to GA4 by enabling the GA4 integration within your CustomFit.ai experiences. For detailed guidance on enabling the integration and completing the setup, refer to the article linked.

Last updated

Was this helpful?