Guide
Google Tag Manager
Integrating Google Tag Manager
Last updated: Mar 14, 2024
Prerequisites
To follow this guide along, you should:
Have Google Tag Manager container.
Have KAEO account.
KAEO base pixel
Get your KAEO snippet from your 'Project Settings'.
Access your Google Tag Manager dashboard and navigate to the desired account/container that is integrated with the website you want to add KAEO tracking to
Click to add a new tag:
On the page to configure a new tag, add your KAEO snippet as a 'Custom HTML Tag' under 'Tag Configuration'
For the trigger, select the default "All Pages" trigger and then click 'Save' on the top right corner of the drawer
Back on the main dashboard, click 'Submit' to update your website with the new KAEO tag
You're done! KAEO is now configured for your website.
To confirm KAEO is configured correctly, visit your website and then check if the events from your session appear in KAEO. Note that this may take a few minutes.
Subscribe to events
To collect and send events from GTM to KAEO you must to create a new tag and trigger. Let's create some examples.
Leads
Access your Google Tag Manager dashboard and navigate to the desired account/container that is integrated with the website you want to add KAEO tracking to
Click to add a new tag
Give a name to tag like 'Lead'
On the page to configure a new tag as a 'Custom HTML Tag' under 'Tag Configuration'
Paste the following snippet:
Under advanced settings, click on 'Tag sequence' and enable 'Fire a tag before'
Select KAEO base pixel created early
Now, click on 'Trigger' and then click on the plus icon in the top right corner to add a new trigger
Give a name to the new trigger, such as 'formSubmit'
Click on 'Choose a trigger' and select 'Form Submit' under 'User engagement'
Click on 'Save' in the top right corner to save the new trigger.
Next, click on 'Save' again to save the new tag.
Click on the 'View' button to test the setup. Paste your URL and try to submit a form.
If everything works as expected, you're done! Just return to GTM and click on 'Submit' to publish your changes.
Note: If you have a custom event for "Lead" or any other event, simply select it in the "Choose Trigger".