Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: External GTM #83

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

EverstormDevelopment
Copy link

Feature: External Goggle Tag Manager

This feature enables the external integration of the Google Tag Manager. If the external GTM option is selected, no integration code is generated by the plugin itself; instead, the plugin automatically monitors whether the GTM is loaded and ready for use.

What changed?

In the backend module, the option to integrate the Google Tag Manager externally has been added to the "Google Tag Manager" group. If this value is TRUE, irrelevant fields in the module get hidden. In the frontend, the GTM will not be integrated by the module. Instead, the plugin checks whether the GTM is loaded and ready for use.

Usecase

In scenarios in which the Magento shop is only part of the website or the Google Tag Manager is integrated via services such as external GDPR services, this feature enables the use of the plugin by preventing the implementation of another GTM and at the same time taking into account already loaded GTMs in terms of the GDPR.

Benefits

According to our research, there is currently no Magento 2 GTM/GA4 plugin on the market that enables the integration of an external Google Tag Manager. The MagePal Google Tag Manager plugin would therefore currently be the first and only plugin to integrate this feature and would have a strong USP.

@EverstormDevelopment EverstormDevelopment changed the title Feature/external gtm Feature: External GTM Nov 8, 2023
@srenon
Copy link
Contributor

srenon commented Nov 21, 2023

@EverstormDevelopment

Thank you for the PR! Also, sorry for the delay in getting back to you.

We already working on a new feature that could be used to achieve this feature. This feature allows users to have greater control over how the GTM code snippet is added to the site (I.e better support for multi-container, serverside/custom domain). Let me know your thoughts so we can figure out a solution together.

image

@EverstormDevelopment
Copy link
Author

EverstormDevelopment commented Nov 22, 2023 via email

@EverstormDevelopment
Copy link
Author

@srenon
Seems like a good solution, but will the tagmanger wait for gtm to be created before it try to use it (or the dataLayer)? Because in case of an external gdpr it could happen that gtm becomes created after a long time or not at all. I would like to try that new feature and provide you feedback if anything not work as expecetd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants