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

create new eventHandler option to do your own event triggering #41

Closed
wants to merge 4 commits into from

Conversation

EddieCanales
Copy link
Contributor

This patch is meant to be a generic implementation for 3 enhancements:

  1. In GTM, you can use names other than dataLayer, but this code previously only looked for dataLayer.
  2. Your GTM setup may use different key names for events, so this adds support for mapping your events to a custom format.
  3. You may not have any of the currently supported tracking frameworks. This allows you to fire events to whatever framework you have.

I considered adding a issue to discuss, but it was simple enough I figured it would be worth having the code in front of us to discuss.

@robflaherty
Copy link
Owner

Looks good! I merged it into the dev branch for the next release. Thanks!

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.

2 participants