How to add Google Tag Manager to Your WordPress Site

You don’t have to use any plugins at all.

The whole process will take you around 5 minutes.

If you don’t know where to get your Google Tag Manager code, please, visit this page.

Armed with your code, go to your console in WordPress admin panel.

Step1

step1 choose appearance editor

In the menu on the left, choose Appearance and in the drop-down menu select Editor.

Step2

choose header in your appearance edit on wordpress

Choose Header in the right list. If you have several headers you will have to edit each one of those.

Step 3

step3 insert opening tag

Find the opening body tag and put your code right after it. Save changes!

 

How to check that your implementation works correctly?

Go to the destination page of your site and press ctrl-U on your keyboard.

Then press ctrl-F and input “Google Tag Manager”. If everything’s alright you should see your code right after the opening body tag. Remember, that this tag has to be on your every page including 404 and even those you don’t include into index. To avoid looking manually through all the pages, just install a Tag Assistant extenstion. It was created by Google to check if your tag manager and all that it includes does work properly.


 

Important!

Beware your theme renewal unless it’s your own child-theme or your own theme. If the theme is renewed, the code may disappear and you may lose data!

 

Do you want to get more information?

Or perhaps, you need a consultation or any other kind of help?

Leave a Reply