Introduction
Google Tag Manager is a free tool that enables marketers to install, store, and manage marketing tags without modifying website code, and instantly deploy tags on your website or mobile app from an easy-to-use web-based interface.MoEngage × Google Tag Manager
With the MoEngage and Google Tag Manager integration, you can forward the events captured on your GTM server to MoEngage without writing any code on your website.Integration via GTM Server Side
PrerequisitesEnsure you have a Google Tag Manager account with permission to import templates and add new tags.
Step 1: Download and import the MoEngage Tag

- Download the MoEngage tag (right-click and Save).
- To import the tag into your GTM workspace, go to the Templates screen from the left side menu.

- Under Tag Templates, click the New button > Actions menu (top-right) > Import. Select the MoEngage tag file you just downloaded.
- Click Save when you see the MoEngage logo on the left.
Step 2: Select and configure the MoEngage Tag
The MoEngage Tag template lets you forward GTM events, update custom as well as standard user attributes inside MoEngage.- On your GTM dashboard, click Tags > New.
- Click Tag Configuration, and under Custom look for the MoEngage Tag.
- Setup the tag according to your needs.

User Identifier

- From Variable: Select this option if you want to use a GTM Variable as the user identifier value.
- From Event Property: Select this option if you want to extract the user identifier from an event property. Enter the attribute key here, for example,
user_id. Note that we can only pick values only from the root level keys. If you want to extract values of nested keys, please use GTM Variables and then select “From Variable” option.
Snowplow Event Mapping Options
You can leave this section as it is. If you’re using a Snowplow client, we have additional options that you can use to ingest Snowplow events into MoEngage. Read more about this in our Snowplow integration guide.Additional Event Mapping Options

Additional Event Data

Additional User Data

Advanced Event Settings

Step 3: Select the trigger condition
