The Google Tag Manager is great for quickly tagging things as events, adding GA tracking tags, AdWords, DoubleClick, custom HTML, and more. There are many integrations that are easily set up. There is somewhat of a learning curve with using GTM but at least you won’t have to worry about adding the two tag snippets in the correct places on your site. Continue reading to learn just how easy it is to implement the GTM tag onto your WordPress installation.
In the back end of your WordPress site go here: Appearance > Editor > header.php and add the line right below the opening <body> tag.
***If WordPress will not allow you to edit this file you can install a theme editor plugin to make the change with a plugin like the following: https://wordpress.org/plugins/theme-editor/
Open the header.php file and add the line right below the opening <body> tag.
If you are unsure the of the name of your theme you can check it out in the WordPress back end by going to: Appearance > Themes > Find the Active Theme.
View the page source of your website and search for your GTM tag ID (you probably still have it copied to your clipboard) to verify that the tag is installed. You could also use the Google Chrome Tag Assistant Browser Extension to see if it’s installed properly on your site.