Skip to content

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