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

Add datalayer renaming to gtm target #98

Merged
merged 10 commits into from
May 24, 2017
Merged

Add datalayer renaming to gtm target #98

merged 10 commits into from
May 24, 2017

Conversation

sombreroEnPuntas
Copy link
Contributor

  • GoogleTagManager new signature is like
    GoogleTagManager({ ...settings })(eventArray)

  • implemented dataLayerName setting. Default value is 'dataLayer'

@ttmarek ttmarek mentioned this pull request May 23, 2017
Copy link
Contributor

@ttmarek ttmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome work, well done!

A couple of things though:

  1. Could you update google-tag-manager-node-env.test.js to use the new function signature?
  2. (optional) The target's docs will need to be updated before release. If you have the time and desire feel free to update the docs in this pull request. If not, that's cool. Up to you 🙂


describe('GoogleTagManager(events)', () => {
describe('GoogleTagManager({...settings})(events)', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think options might be a better name for the signature, as it isn't required.

@sombreroEnPuntas
Copy link
Contributor Author

sombreroEnPuntas commented May 24, 2017

  • google-tag-manager-node-env.test.js
    Ooooops! 👾 I forgot to update that test.
    Funny, shouldn't it be failing if I change the signature? Will check/fix that too.

  • settings to options
    Makes sense :)

  • docs update
    Docs FTW 🚀

@ttmarek
Copy link
Contributor

ttmarek commented May 24, 2017

Fixes #97

This is excellent! And it'll be included as part of the next release (probably in one week's time).
🥇 ⭐

@ttmarek ttmarek merged commit 6e5fc5a into rangle:master May 24, 2017
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