Amplitude Google Tag Manager (GTM) Server-Side Template

The Amplitude server-side GTM template makes it easy to send data to Amplitude via a server-side implementation.

Inside Amplitude
May 16, 2022
Image of Adam Greco
Adam Greco
Product Evangelist, Amplitude
Amplitude GTM Server-Side

A few months ago, Amplitude, in collaboration with Simo Ahava released an Amplitude Google Tag Manager (GTM) Template (client-side). This free GTM Template made it possible for any Google Analytics customer using GTM to send data to Amplitude. The GTM Template allowed organizations to re-use all of the work that had gone into building their digital analytics data layer to send data to Amplitude. The adoption of the GTM Template has been amazing! We have seen steady growth in the use of this template since its release (partly driven by the announcement of the sunsetting of Universal Analytics!).

GTM Template Usage

However, the Amplitude Google Tag Manager Template was developed for a client-side analytics implementation. With all of the changes taking place around privacy, GDPR, and browsers, many organizations are shifting their analytics tagging to server-side instead of client-side. To address this need, we are excited to announce that Simo Ahava has created a new Server-Side Amplitude GTM Template. You can find this new GTM Template in the gallery.

Some of the advantages of using this server-side template include:

  • You only have to make minimal changes to your existing website tagging. The Amplitude template running in your server-side Google Tag Manager container will handle mapping the incoming requests to the format that Amplitude expects
  • You get to choose exactly what data Amplitude receives
  • You can completely remove personal data, such as the user’s IP address before the hit is sent to Amplitude
  • With server-side tagging, you can enrich the hits in the server, pulling data from your other systems before the whole package is sent to Amplitude
  • By hosting the server-side tagging endpoint (which you 100% own) on your own subdomain, you can access first-party cookies and HTTP headers when building the Amplitude request
  • You don’t need to know anything about server-side technologies or the cloud. With this template and with the familiar Google Tag Manager user interface, you can build a server-side setup quite painlessly

Below is a short video that explains how the Amplitude GTM Server-Side Template works:

Tip: it is always suggested to have a custom instance name to avoid naming collision.

Custom-Instance
GA-Webinar
About the Author
Image of Adam Greco
Adam Greco
Product Evangelist, Amplitude
Adam Greco is one of the leading voices in the digital analytics industry. Over the past 20 years, Adam has advised hundreds of organizations on analytics best practices and has authored over 300 blogs and one book related to analytics. Adam is a frequent speaker at analytics conferences and has served on the board of the Digital Analytics Association.