Skip to content

Google Tag Manager Template - Amplitude Analytics Browser SDK

This is the client-side Google Tag Manager Template for Amplitude Analytics. The tag uses the Amplitude Marketing Analytics SDK for data collection.

It’s important to create an init tag. It's common to fire the init tag using All Pages or Initialization - All Pages triggers. With this template, you can also defer the init tag until you receive a signal and fire it using customized triggers, such as a consent grant. But notice that all other tags wait for the init tag to fire before they can be sent to Amplitude. The legacy template automatically calls init, so there's no need to do it yourself.

This video tutorial walks through the implementation basics.

EU data residency

For EU data residency, you must set up your project inside Amplitude EU and use the API key from Amplitude EU. You can configure the server zone by checking the checkbox EU Data Residency under Tag Configuration -> Initialization of the init tag. The initialization section only shows up when tag type is set to init.

Still have questions? Ask them in the Community.