Skip to main content

We have a template to guide you as you integrate Google Tag Manager (GTM) with Amplitude. This re-implementation work often requires you to work with your dev team to codify the data layer elements into the tag-management system. Our template ensures that you can reuse all of the data-layer creation work and data object management work to pass data into Amplitude.

GTM client-side and server-side templates execute the tracking plan differently. The setup involves using client-side templates to track user interactions on a website, while server-side templates are used to track sensitive information or complex tags. 

Note: There are now two client-side GTM templates; the legacy template is for Java Script, and the new Browser SDK template includes JavaScript and adds Marketing Analytics new features on top of the legacy SDK.

At a high level, you (1) Install the template, (2) Create a tag, and (3) Check for success. Follow along using our quick start guide in our Developer Docs and this quick video below that details how to configure the Google Tag Manager template.

 

Additional Resource

Is it possible to use Ampli CLI together with Google Tag Manager?


Is it possible to use Ampli CLI together with Google Tag Manager?

would be interesting!


Is it possible to use Ampli CLI together with Google Tag Manager?

I am curious about this as well.  Is there a way to initialize the GTM tag with the device and session id with the same session and deviceid  initialized with the Ampl CLI?  


  1. Create 2 custom javascript variables to fetch deviceId and sessionId
  2. Create a config variable that adds 2 parameters deviceId and sessionId
  3. Add that variable to your initialization tag

Reply