Google Tag Manager
beginner
8 min read3 steps691 views

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

Setup & Fundamentalsinstall google tag manager

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.

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

1

Step-by-Step Setup

Access your account or platform. Navigate to the relevant section. Complete each configuration step, testing along the way. Verify your setup using built-in diagnostic tools before relying on the data for decisions.
2

Best Practices

Start with recommended defaults and optimise based on data. Review performance regularly. Make incremental changes. Document your configuration.
3

Common Issues and Solutions

Check the platform's help centre for troubleshooting. Allow 24-48 hours for data to populate. Ensure correct permissions. Verify all integrations are active and properly configured.

Frequently Asked Questions

Common questions about this topic

Was this guide helpful?

Your feedback helps us improve our guides