François Lecomte - Google Tag Manager & Amplitude
François Lecomte - Google Tag Manager & Amplitude
François Lecomte - Google Tag Manager & Amplitude

How to Send Events from Google Tag Manager to Amplitude

François Lecomte

by

François Lecomte

Sep 14, 2024

Data

Data

How to Send Events from Google Tag Manager to Amplitude

Identify and convert your most valuable users
Hyperaktiv.ai Dashboard
Hyperaktiv.ai Dashboard
Hyperaktiv.ai Dashboard

Sign Up

Integrating Google Tag Manager (GTM) with Amplitude allows you to easily track user events and page views. In this guide, we'll walk you through the process of setting up this integration step by step.


Amplitude analytics


Step 1: Create a New Tag in Google Tag Manager


  1. Open your Google Tag Manager account and navigate to the Tags section

  2. Click on "New" to create a new tag


New tag in GTM


Choose a new tag GTM


Step 2: Install the Amplitude Template

If you don't see Amplitude in the tag type options, you'll need to install the Amplitude template from the gallery. This is a one-time process:


  1. In the tag configuration, click on "Choose a tag type"

  2. At the top of the panel, click on "Discover more tag types in the Community Template Gallery"

  3. Search for "Amplitude" in the gallery

  4. Select the Amplitude template and click "Add to workspace"


Community Template Amplitude GTM


Add a new template GTM


Step 3: Configure the Amplitude Tag

Now that you have the Amplitude template installed, let's configure it:


  1. Name your tag (e.g., "Amplitude init")

  2. For the tag type, select "Amplitude"

  3. In the Amplitude tag configuration:

  • Select "Initialization" as the event type

  • Leave the default settings for tracking (Amplitude automatically tracks sessions and page views)

  • If your project is in the EU, make sure to check the "EU Data Residency" box

Step 4: Add Your Amplitude API Key

To connect GTM with your Amplitude project:


  1. Go to your Amplitude account and find your project's API key

  2. In the GTM Amplitude tag configuration, paste your API key in the designated field


API key Amplitude GTM


Step 5: Set the Trigger

We want this tag to fire on every page:


  1. In the "Triggering" section of your tag, click to add a trigger

  2. Select "All Pages" as the trigger type

Step 6: Publish Your Changes

Once you've configured your tag:


  1. Click the "Submit" button to open the submission panel

  2. Name your version (e.g., "Added Amplitude integration")

  3. Click "Publish" to make your changes live


Submission panel GTM

Congratulation! You've successfully set up Google Tag Manager to send events to Amplitude. Now, every page view and session will be automatically tracked in your Amplitude project.

Important Notes

  • Remember to test your integration in GTM's preview mode before publishing

  • If you're not seeing events in Amplitude, double-check that you've entered the correct API key and selected the EU Data Residency option if applicable

Want More Details?

While this guide provides a quick overview of integrating Google Tag Manager with Amplitude, there are many more advanced features and configurations you can explore. For a more in-depth walkthrough and to see these steps in action, we recommend watching the full video tutorial.

Want to get actionable insights from your Amplitude data?

Want to get actionable insights from your Amplitude data?

Get Started Today