Google Tag Manager
beginner
7 min read3 steps697 views

How to Install GTM on WordPress

Three methods: Use the 'Insert Headers and Footers' plugin (paste head snippet in header, body snippet in body — simplest), use 'Google Site Kit' plugin (official Google plugin, connects GTM along with other Google services), or manually edit your theme's header.php file (add head snippet before </h

Setup & Fundamentalsgtm wordpress setup

Quick Summary

Three methods: Use the 'Insert Headers and Footers' plugin (paste head snippet in header, body snippet in body — simplest), use 'Google Site Kit' plugin (official Google plugin, connects GTM along with other Google services), or manually edit your theme's header.php file (add head snippet before and body snippet after ). Plugin method is recommended for non-developers. If editing theme files, use a child theme so updates do not overwrite your changes.

Overview

Three methods: Use the 'Insert Headers and Footers' plugin (paste head snippet in header, body snippet in body — simplest), use 'Google Site Kit' plugin (official Google plugin, connects GTM along with other Google services), or manually edit your theme's header.php file (add head snippet before and body snippet after ). Plugin method is recommended for non-developers. If editing theme files, use a child theme so updates do not overwrite your changes.

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