Record events with Google Tag Manager
Tags are small pieces of code that help integrate third party products into your app. The Google Tag Manager (GTM) lets you control these tags across all of your source files.
You can use Adjust's server-to-server Google Tag Manager integration to record tags as app events in Adjust. This lets GTM push events from Google's servers to Adjust's endpoints, and saves you the task of duplicating recorded events.
Before you begin
Here's what you need to know before getting started.
Requirements
- A registered Google Tag Manager account.
- Firebase SDK implemented in your app.
- This is required to set up Google Tag Manager.
- Adjust SDK integrated in your app and registering installs.
- Your Adjust app token and event tokens.
Set up event recording in Google Tag Manager
For an in-depth guide to Google Tag Manager setup and advanced configurations, use Google Developers documentation for Android and iOS.
To set up Google Tag Manager event measurement and record your Google Tags as events in Adjust, follow these steps in the GTM dashboard.
- Log in to your GTM account and select the Container section.
- Select Add New Tag, then under Select Tag Type scroll down and add Adjust.
- In Tag Configuration, enter your Adjust app token and event tokens.
- Check the required configuration settings for revenue events or events you want to record in Adjust’s sandbox environment.
- Choose to link callback or partner parameters that are recorded with each tag.
- In Triggering, determine which app events will trigger the tag. You can opt to select all events or define rules and/or exceptions.
- Select Create Tag.
Well done! Now that you have successfully set up event measurement with GTM, make sure that you are not recording the same events with Adjust. If you are, then you will see duplicated reporting in Adjust.