---
title: "Amplitude Google Tag Manager (GTM) Server-Side Template - Adam Greco"
description: "Leverage the new Amplitude Google Tag Manager server-side template to leverage past development work and implement Amplitude server-side."
canonical: "https://amplitude.com/en-us/blog/gtm-server-side"
---

# Amplitude Google Tag Manager (GTM) Server-Side Template - Adam Greco

Leverage the new Amplitude Google Tag Manager server-side template to leverage past development work and implement Amplitude server-side.

Source: https://amplitude.com/en-us/blog/gtm-server-side

---

[Adam Greco](/blog/author/adam-greco)

[Former Product Evangelist, Amplitude](/blog/author/adam-greco)

[](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fgtm-server-side)[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fgtm-server-side)[](https://twitter.com/intent/tweet?url=https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fgtm-server-side\&text=Amplitude%20Google%20Tag%20Manager%20\(GTM\)%20Server-Side%20Template)[](mailto:?subject=Checkout%20this%20Amplitude%20Article\&body=Check%20this%20out%3A%20https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fgtm-server-side)

A few months ago, Amplitude, in collaboration with [Simo Ahava](https://www.linkedin.com/in/simoahava/) released an [Amplitude Google Tag Manager (GTM) Template](https://amplitude.com/blog/google-tag-manager-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](https://amplitude.com/blog/ga4-faq)!).

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](https://www.simoahava.com/analytics/server-side-tagging-google-tag-manager/) 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](https://tagmanager.google.com/gallery/#/owners/amplitude/templates/amplitude-server-gtm-template). You can find this new GTM Template in the [gallery](https://tagmanager.google.com/gallery/#/owners/amplitude/templates/amplitude-server-gtm-template).

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.*

[](https://info.amplitude.com/UA-sunsetting-GA4-forced-migration)

##### Want to know what your users actually do?

Amplitude turns product behavior into decisions your whole team can act.

[Get started free](/signup?source=blog-analytics\&topic=analytics\&siteLocation=blog-inline-cta)

About the author

Adam Greco

Former Product Evangelist, Amplitude

[More from Adam](/blog/author/adam-greco)

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.

[More from Adam](/blog/author/adam-greco)

Topics

[Analytics](/blog/tag/analytics)

[Google Analytics](/blog/tag/google-analytics)

#### Recommended Reading

[Read ](/blog/amplitude-github-learning-loop)

[Product](/blog/amplitude-github-learning-loop)

###### [Amplitude + GitHub Agents: Closing the Product Learning Loop](/blog/amplitude-github-learning-loop)

[Oct 19, 2026](/blog/amplitude-github-learning-loop)

[4 min read](/blog/amplitude-github-learning-loop)

[Read ](/blog/lessons-from-consolidating-our-mcp-server)

[Insights](/blog/lessons-from-consolidating-our-mcp-server)

###### [Lessons from consolidating our MCP server](/blog/lessons-from-consolidating-our-mcp-server)

[Oct 6, 2026](/blog/lessons-from-consolidating-our-mcp-server)

[10 min read](/blog/lessons-from-consolidating-our-mcp-server)

[Read ](/blog/what-ai-engineers-do)

[Insights](/blog/what-ai-engineers-do)

###### [What AI engineers do in the age of agentic code](/blog/what-ai-engineers-do)

[Oct 1, 2026](/blog/what-ai-engineers-do)

[14 min read](/blog/what-ai-engineers-do)

[Read ](/blog/jev-analysis)

[Insights](/blog/jev-analysis)

###### [An analysis of Jev: Faster and cheaper, but watch the accuracy](/blog/jev-analysis)

[Sep 28, 2026](/blog/jev-analysis)

[13 min read](/blog/jev-analysis)

#### Explore Related Content

[101](/compare/top-feature-flag-solutions-for-product-teams)

###### [9 Top Feature Flag Solutions for Modern Product Teams in 2026](/compare/top-feature-flag-solutions-for-product-teams)

[Jan 27, 2026](/compare/top-feature-flag-solutions-for-product-teams)

[Integration](/blog/amplitude-hubspot-behavioral-analytics)

###### [Using behavioral analytics for growth with the Amplitude app on HubSpot](/blog/amplitude-hubspot-behavioral-analytics)

[Jun 17, 2024](/blog/amplitude-hubspot-behavioral-analytics)

[10 min read](/blog/amplitude-hubspot-behavioral-analytics)

[Personalization](/blog/identity-resolution-insights)

###### [Identity resolution: The secret to a 360-degree customer view](/blog/identity-resolution-insights)

[Feb 16, 2024](/blog/identity-resolution-insights)

[10 min read](/blog/identity-resolution-insights)

[Product](/blog/warehouse-native-technical-deep-dive)

###### [Inside warehouse-native Amplitude: A technical deep dive](/blog/warehouse-native-technical-deep-dive)

[Jun 27, 2023](/blog/warehouse-native-technical-deep-dive)

[15 min read](/blog/warehouse-native-technical-deep-dive)

[Guide](/resources/boost-customer-engagement)

###### [5 Proven Strategies to Boost Customer Engagement](/resources/boost-customer-engagement)

[Jul 12, 2023](/resources/boost-customer-engagement)

[Video](/designing-high-impact-experiments)

###### [Designing High-Impact Experiments](/designing-high-impact-experiments)

[May 13, 2024](/designing-high-impact-experiments)

[Startup](/blog/direct-to-consumer-marketing-tactics)

###### [9 direct-to-consumer marketing tactics to accelerate ecommerce growth](/blog/direct-to-consumer-marketing-tactics)

[Feb 20, 2024](/blog/direct-to-consumer-marketing-tactics)

[10 min read](/blog/direct-to-consumer-marketing-tactics)

[Growth](/blog/analytics-product-market-fit)

###### [Leveraging analytics to achieve product-market fit](/blog/analytics-product-market-fit)

[Jul 20, 2023](/blog/analytics-product-market-fit)

[10 min read](/blog/analytics-product-market-fit)
