Blog

Home > Analytics FAQs > Where to put Google Tag Manager code in Wordpress?

Where to put Google Tag Manager code in Wordpress?

Google Tag Manager has become a popular tag management solution especially for small and medium business owners relying on Wordpress CMS websites.

You can learn more about it by visiting our home page.

In this guide, I will show you where to put the Google Tag Manager code in Wordpress. This is really important because a large number of Wordpress website owners are not good at modifying codes.

Google Tag Manager provides two codes to put on your website, one in the head section and the other in the body section.

 tag manager container scripts

Now follow the steps below to add Google Tag Manager code to your Wordpress site.

Step 1: Login to your Wordpress admin and navigate to Appearance >> Editor.

 wordpress code editor

Step 2: Look for the header.php file and open it.

 wordpress header file

Step 3: Now paste the first tag manager container code just below the <head> tag as shown in the image below.

 tag manager code wordpress

Step 4: paste the second container code just below the <body> tag.

 tag manager script code

Step 5: Click on the update button and you’re done! 

Now you can verify the tag manager setup either by previewing the workspace changes or by using Google Tag Assistant chrome extension.

If you are new to Tag Manager you can follow our step by step guide to install Google Tag Manager on wordpress. In this guide, I have covered everything you need to get started with Tag Manager.

 

Share:

Hussain

Analytics Strategy Pioneer

C-Suite Whisperer 14 Years Industry Vet

Case Studies

Discover our latest success stories and see how innovative strategies drive measurable results.

Get a Free Attribution Dashboard

Gain clear insights into what’s driving conversions and optimize your marketing spend with ease.

Are you Ready to Fast Track your Marketing Attribution Decisions and Maximize your ROI?

Businesses that leverage automated marketing
attribution see a 20-30% improvement in ad
spend efficiency.

Blog

Home > Analytics FAQs > Where to put Google Tag Manager code in Wordpress?

Where to put Google Tag Manager code in Wordpress?

Share: