Our in-platform integration is currently available for customers who have GA4 implemented directly on their site. If you've set up GA4 through GTM, this guide is for you!
Download the attached JSON file.
Open your GTM container and go to ‘Admin’ > ‘Import Container.’
Click ‘Choose container file’ and select the JSON file you downloaded in step 1.
Select ‘Default Workspace’ and choose the workspace you want to import this into, or create a new one.
Under ‘Choose an import option,’ select ‘Merge’ (there should be no conflicts)
It should now look like this:
Click the blue ‘Add to workspace’ button.
Go to the tag labeled ‘MWI - GA4 - Intent Pageview Events’ (shown below) and update the Measurement ID from ‘G-XXXXXXXXXX’ to your own. If you're unsure of your Measurement ID, follow these steps. If you want to limit the number of events sent to GA4, we recommend setting the tag firing options to ‘once per page.’
Your GA4 events will now trigger with each intent inference. Once everything is set, you can publish the container.
Your integration is now set-up! Don’t forget to configure your Custom definitions in GA4, here's more on how to set these up.