haonv01 / rv-gtm-haonv

0 stars 0 forks source link

Add & Config Google Tag Manager in Magento 2 #1

Open haonv01 opened 3 years ago

haonv01 commented 3 years ago

Comment bellow

haonvpt commented 3 years ago

How to Add & Config Google Tag Manager in Magento 2?

haonv01 commented 3 years ago

Google Tag Manager is an essential tool for online marketing activities. Having a proper tracking code installed into your site system will help you get analytics data easier and more accurate. The final result of the analytics will be the fundamental criteria to evaluate and make important decisions.

For starters, we all know Google tag manager brings multiple benefits but how can you experience all these benefits to the fullest? The answer is store integration. When this tool is integrated into your backend, you can gain more control with your store tags.

In this article, I will review and explain more about Google Tag Manager for Magento 2 https://www.mageplaza.com/magento-2-google-tag-manager/. Let’s learn how you can add and configure the Google Tag Manager to your Magento 2 store site via a third party! How to add Google Tag Manager to Magento 2 store

It is possible for you to integrate this gadget without a middle man like an additional module. However, to activate integration is quite a bothersome task when compared with installing a module. Besides, Magento 2 Google Tag Manager by Mageplaza also featured with many more functionalities that await you to install to the store backend.

First off, before getting back to the admin panel, you should register a Google Tag Manager account via this link here https://marketingplatform.google.com/about/tag-manager/.

[image: Register a Google Tag Manager account]

Then, input the required information for the registration process for your account.

[image: add a new account]

You can set up the “container”. The container https://developers.google.com/tag-manager/api/v1/reference/accounts/containers is a set of rules, tags and macros which is configured for a specific site. You should fill the container with your website’s domain name. For stores that have multiple store sites, you will have to create several containers. Also, you should set it as “Web” Container as you are running a website, not a mobile app. Then, click Create.

After that, you can copy the code generated by the GTM system like below and paste it into each page of your store site.

[image: Code generated by CTM system]

Finally, you can access the Admin section to collect Container ID to install in Magento

[image: Admin section] How to configure Magento 2 Google Tag ManagerGeneral Configuration

You need to come back to the Magento Admin, choose Stores > Configuration > Mageplaza Extensions > Google Tag Manager. In the top field, select Yes in Enable field to activate the extension.

[image: general configuration]

Configure Google Tag Manager

[image: configure Google Tag Manager]

Next, select Yes in the second Enable Field to enable the use of the Google Tag Manager feature which helps to update and control all tags on the site.

For the Google Tag ID field, admins need to paste the Google Tag Manager’s Container ID to this field to update some information on an event. The event can be set in category page, product page, when adding to cart, remove from cart, order success, search, checkout default or checkout page of Single page Checkout extensions https://www.mageplaza.com/magento-2-one-step-checkout-extension/ which help shorten checkout process to only 6 steps within a page and optimize the checkout process for customers https://www.mageplaza.com/blog/why-need-magento-2-one-step-checkout.html.

If the field is left blank or filled with incorrect information, the Container ID will be unable to display information in detail.

[image: Tag manager]

Note: You can activate the Google Tag Manager by creating Trigger then Tag and click Preview or Submit in case GTM is disabled.

[image: trigger configuration] Final words

In a nutshell, Google Tag Manager provided by Mageplaza is the optimal solution which can help to reduce the number of the installed module. The module not only provides the function to manage tags for store sites but also provides Adwords, Facebook tracking, Google analytics within this module. With 4 of these tools all included in the GTM extension, you can manage all of them through the site. Hence, if you find difficulties in adding Google Tag Manager module to your store, Mageplaza support team https://www.mageplaza.com/setup-gtm-service/ will help you install the plugin to your Magento 2 store sites.

Vào Th 5, 8 thg 4, 2021 vào lúc 11:31 haonvpt @.***> đã viết:

How to Add & Config Google Tag Manager in Magento 2?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haonv01/rv-gtm-haonv/issues/1#issuecomment-815437602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIIJIMBZF4VSJUVZT6IKVDTHUWTDANCNFSM42SBYZLQ .

-- Thanks and best regards.

Vicent Nguyen

Webmaster & SEO Manager


Mageplaza - Most Popular Magento 2 Extensions Builder

*VN*: 102 Tran Phu, Ha Dong, Hanoi

USA: 100 Church St, Manhattan, New York

Website: www.mageplaza.com https://www.mageplaza.com

Support: https://mageplaza.freshdesk.com

Contact: https://www.mageplaza.com/contact.html

Services: Magento 2 | Extensions | Development | Tutorials | Custom Services