GTM Architecture
One snippet in your site. Every tag in the UI.
Your site
Layout.astro
deployed once
<!-- head -->
<script>
  GTM-XXXXXXXX
</script>
 
<!-- body -->
<noscript>
  iframe fallback
</noscript>
one snippet
tag management layer
Google Tag Manager
GTM Container
GTM-XXXXXXXX
All tag logic lives here.
UI changes, not code changes.
no deploy required
📊
Google Analytics 4
pageview + events
💼
LinkedIn Insight Tag
audience + conversions
📘
Meta Pixel
retargeting
âš¡
Custom Events
clicks, scroll, forms
The site deploys once with the GTM container snippet. Every tracking decision after that happens in the GTM interface. No code changes, no PRs, no deploys.