Google tag manager is a useful tool to add remove and manage tags or scripts to your wordpress site and manage them . For example you can choose to fire a chat widget only on certain pages.
There are also many Google tag manager recipes that you can use, but that is beyond the scope of this article. In this article we will see how to add Google tag manager to this wordpress article.
Steps to add Google tag manager to wordpress-
- Go to http://www.google.com/tagmanager/
- Click on sign up for free.
- Sign in with your google id.
- Enter account name and country.
- In set up container, enter container name and choose “web” since you are adding it to your wordpress website.
- Agree to the terms and conditions.
- Now copy your Google tag manager ID.
- Go to your wordpress dashboard and install the google tag manager for wordpress plugin (link)
- Go to settings-> Google tag manager -> enter your GTM ID and click save
Thats it! now you have successfully added Google tag manager to your wordpress site.