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

Using redux-beacon for GTM event handling #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chungeric
Copy link
Contributor

@chungeric chungeric commented Oct 12, 2018

Using redux-beacon for Google Tag Manager event handling

I've replaced Michael's custom implementation for Google Tag Manager event handling (in app/utils/gtmMiddleware.js) with redux-beacon which simplifies the code a lot and should make it easier to maintain and add more events to future builds.

I've brought over some things from Absolute Cosmetic's code to get the trackingId from App Settings and also replaced the Google Analytics snippet with the Google Tag Manager snippet.

This should also add the GTM scripts/snippets in the right places on the DOM when you add a GTM Tracking ID in the App Settings in WordPress.

Hoping this PR will help standardise the GTM scripts positioning as well.

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.

1 participant