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