Do you want to install more scripts on your website without pasting a code then Google Tag Manager reduces all your Work. You should know about How to Add Google Tag Manager to WordPress website or blog in 2019.
You can read more about Google Tag Manager and their WordPress Plugins by this guide:How to Add Google Tag Manager to WordPress & Create the First Tag? Click To Tweet
2 Best Ways to Install Google Tag Manager to WordPress:
There are two best methods for setting up Google Tag Manager for WordPress.
- You can add without a Plugin.
- With the help of a plugin
1. How to Add Google Tag Manager to WordPress without Plugin?
We break this into three parts.
a. Create a Google Tag Manager Account.
b. Insert Google Tag Manager Code to WordPress using the header.php file.
c. Submit Your Workspace.How to Add Google Tag Manager to WordPress without Plugin? Click To Tweet
a. Create a Google Tag Manager Account:
Step 2: It will open the Google Tag Manager and ask for Create an Account.
You can click on the Create Account in the blue button or Click here to create an account. Click on Create Account. It will ask you for your website or other details.
Step 3: First, it will ask for your Company Name and Country. Put your Website Name in Company Name and Select your country in Account Set up.
If you want to share data with Google you can choose this option otherwise leave as it is.
Step 4: Put your Website URL in Container Name without http or https.
After putting your Website URL in Container name, it will ask where do you want to Install Container.
There are Four options available here.
You can install Container in any of the options if you want to add. But in this case, Select Web.
After putting Container Name and Selecting the Container Platform, Click on create.
Step 5: After Click on Create then it will ask you to Accept their Policies. So accept Google Tag Manager policies by clicking on Yes.
Step 6: After accepting the policies, Google Tag Manager will provide
b. Insert Google Tag Manager Code to WordPress using the header.php file:
Step 1: Login into Your WordPress Admin Dashboard.
Step 2: Go to Appearance > Theme Editor (Editor).
Step 2: Open header.php file and paste the first code after <head> tag.
Step 3: Paste the second code after the <body> tag in the header.php file.
Step 4: Update the header.php file.
After saving your header file then publish your Container Version in Google Tag Manager.
c. Submit Your Workspace:
Step 1: After pasting the Google Tag Manager Both codes in WordPress, Go to tag manager and Click on Ok after pasting both codes.
Step 2: You will see two options on top on the right side in Workspace changes.
Step 3: Click on Submit in Workspace Changes.
Step 4: After clicking on Submit, It will ask you to Publish.
If you want to add Version Name or Description then you can do it otherwise leave as it is. Click on Publish.
When you leave Version name and Description empty then it will ask after clicking on Publish. If you do not want to Add then skip this step.
Step 5: So click on Skip and it will install your tag manager successfully. Your version is Live and shows in the Workspace section in Google Tag Manager.
2. How to Set Up Google Tag Manager for WordPress by DuracellTomi’s Google Tag Manager Plugin?
a. Sign Up For Google Tag Manager Account.
b. Use DuracellTomi’s Plugin and Paste Your Container Id.
c. Submit Your Workspace.How to Set Up Google Tag Manager for WordPress by DuracellTomi's Google Tag Manager Plugin? Click To Tweet
a. Sign Up for Google Tag Manager Account:
Before using the plugin, you have to Follow the Signup process in Method 1, here you have not to need to copy the script codes.
b. Use DuracellTomi’s Plugin and Paste Your Container Id:
Step 1: Go to Plugins and click on Add New.
Step 2: Install Google Tag Manager for WordPress Plugin.
Step 3: Go to Settings > Google Tag Manager.
Otherwise, Go to Installed Plugins section and you will see Google Tag Manager for WordPress. You can do Settings here.
Step 3: After clicking on Google Tag Manager, It will ask you for Google Tag Manager Id. This option is in the General section.
Login into Google Tag Manager with your email id and password. Copy the Container id.
Step 4: Paste the Container id in Google Tag Manager Id. Choose Container Code Placement is the footer of the page.
Step 5: Click on Save Changes.
c. Submit Your Workspace:
Step 6: Go to Google Tag Manager and Click on Submit. When you will submit the Workspace changes then it will ask for publish the live version.
You can put your version name and description according to your needs otherwise you can leave as it is.
Step 7: Click on Publish.
After publishing, it will ask you for a Container name and Description. You can put container name and description according to your needs otherwise you can leave as it is.
Step 8: Click on Skip, if you have not put the name and description. If you have put the name and description then click on continue.
Step 9: Your version is live. Live Version means you have successfully added the Google Tag Manager code in WordPress.
How to Check that Google Tag Manager is Installed or Not?
If you want to check that Google Tag Manager is Installed on your Website or not then install Google Tag Assistant Chrome Plugin.
When you will click on Google tag Assistant in Chrome then it will show Google Tag Manager on your WordPress Website or blog like this.
How to Create Your First Tag?
Step 1: Go to Google Tag Manager Home Page.
Step 2: Click on Add a New tag under the New Tag section.
Step 3: Rename Your Tag.
Step 4: Choose a tag type in the Tag Configuration.
Step 5: Choose Your Desired tag otherwise Choose Custom Tags.
Step 6: Paste the Code in your selected tag. You can do advanced settings otherwise leave it.
Step 7: Apply a Trigger.
Step 8: Save Tag settings.
Step 9: Submit your Workspace Changes.
Step 10: Publish Your Container Version with title & description.
Your tag is successfully created on Google Tag Manager.How to Add Google Tag Manager to WordPress & Create the First Tag? Click To Tweet
So this is the complete guide about How you can set up Google tag manager for WordPress and Create your first tag.
If you do not want to use the plugin for set up then you can use the first method otherwise you can use the second method.
Google Tag Manager will help you to fire a tag on the WordPress website and help to load your website fast.
If you have liked this article, then share it with others on your social media profiles and join our Facebook Group.
Last Modified on by