How to Install Google Tag Manager on Your Website
GTM requires two code snippets on every page. Snippet 1 goes as high in the <head> as possible. Snippet 2 goes immediately after the opening <body> tag. This is a one-time developer task. For CMS platforms: Shopify (use theme.liquid or a GTM app), WordPress (use Insert Headers and Footers plugin or
Quick Summary
GTM requires two code snippets on every page. Snippet 1 goes as high in the
as possible. Snippet 2 goes immediately after the opening tag. This is a one-time developer task. For CMS platforms: Shopify (use theme.liquid or a GTM app), WordPress (use Insert Headers and Footers plugin or Site Kit), Webflow (Project Settings > Custom Code), Wix (Marketing Tools > Marketing Integrations). Verify installation using GTM's Preview Mode or the Tag Assistant Chrome extension.Overview
GTM requires two code snippets on every page. Snippet 1 goes as high in the
as possible. Snippet 2 goes immediately after the opening tag. This is a one-time developer task. For CMS platforms: Shopify (use theme.liquid or a GTM app), WordPress (use Insert Headers and Footers plugin or Site Kit), Webflow (Project Settings > Custom Code), Wix (Marketing Tools > Marketing Integrations). Verify installation using GTM's Preview Mode or the Tag Assistant Chrome extension.Related Guides
See our complete guide library for detailed coverage of setup, tracking, analysis, and optimisation across all platforms.
Process Flow
Interactive diagram — drag to pan, scroll to zoom
Step-by-Step Guide
Follow these 3 steps to complete this guide
Step-by-Step Setup
Best Practices
Common Issues and Solutions
Frequently Asked Questions
Common questions about this topic
Was this guide helpful?
Your feedback helps us improve our guides