The store will not work correctly when cookies are disabled.
We use cookies to make your experience better.To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.
Google Tag Manager is a free tag management tool that allows Magento 2 store owners to manage and deploy marketing tags without any change in the code. Google tag manager and Google analytics are very important parts of the Magento 2 stores.
Steps to add Google Tag Manager in Magento 2
Follow the following steps to add GTM in Magento 2
Create a Google Tag Manager Account
Login with your Gmail account.
Open the GTM website and click on the Create Account button.
Complete the Information at the Add a New Account page.
Click on the Create button.
Get the GTM Code
After Create you will get the GTM code, which has two sections one is for the header section and the second is for the body section.
Paste both head and body sections into your Magento 2 website.
Steps to add GTM in Magento 2 website
In the Admin panel, go to CONTENT > Design > Configuration.
Click on the Edit button to edit the store.
In the section of Other Settings, click on the HTML Head to open.
Paste the code of <head> tag in the field of Scripts and Style Sheets.
Now click on the Footer option.
Paste the code of <body> tag in the field of Miscellaneous HTML.
Click on the Save Configuration button.
TheOnlineHelper provides the Google Tag Manager Integration Services if you want any kind of help please get a quote.