Google Tag Manager Template Quickstart Guide
Use the official Amplitude Analytics Google Tag Manager templates to collect data. Choose a template to visit the documentation and tutorial video.
Template | Type | Description |
---|---|---|
Amplitude Analytics Browser SDK | Client-side | The tag uses the Amplitude Marketing Analytics SDK for data collection. |
Amplitude Analytics | Server-side | The tag uses the Amplitude HTTP V2 API for data collection. |
Amplitude Analytics Legacy | Client-side | The tag uses the Amplitude JavaScript SDK for data collection. |
Amplitude's GTM templates offer a convenient way for developers to set up event tracking in their applications. These pre-configured templates provide a streamlined solution for deploying tracking tags, reducing the time and effort required to set up event tracking. Learn more about Google Tag Manager Templates.
Client-side vs server-side¶
Google Tag Manager (GTM) offers both client-side and server-side templates for tag deployment. GTM client side templates and GTM server side templates differ in the way they execute the tracking plan.
Client-side templates run the tracking plan directly on the user's device and use JavaScript code to manage tags. They serve tags that need to interact with the client environment, such as tracking user actions on a website. However, the client browser capabilities restrict these templates and may not be appropriate for tags that require access to server-side data.
GTM server-side templates run on the server, not on the client's browser. They control tags with server-side code and serve tags that require access to server-side data, such as monitoring server-side events. These templates offer a higher level of control over tag deployment and can handle complex tag implementations
Use GTM client-side templates to track user interactions on a website. Use server-side templates if you want to track sensitive customer information or complex tags that require server-side processing.
Getting started¶
Install the template¶
- Go to Tag Manager and select your container or set up a new one.
- Open the Templates tab and click Search Gallery in the Tag Templates section.
- Type "Amplitude" in the search bar and select the Amplitude GTM Template.
- Add the template to your workspace by clicking "Add to Workspace".
Create a tag¶
After installing the template, you can then use that template to create a tag.
Note
Consult the corresponding template document for more information and EU configuration.
- Go to the Tags tab in your Google Tag Manager Workspace and click New.
- Select the Amplitude GTM Template from the list of available templates under Tag Configuration. If you haven't installed an Amplitude GTM Template, install the template first.
- Enter your Amplitude API Key in the Tag Configuration section.
- Choose a trigger that you want to use to fire the tag in the Triggering section.
- Save your tag and publish your GTM container.
Check for success¶
Verify that the Amplitude tag is firing correctly by checking the Debug mode in GTM and debugging Analytics.
To learn more about each template and see a tutorial video, click the template name in the table at the beginning of this page.
Still have questions? Ask them in the Community.