-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add datalayer renaming to gtm target #98
Conversation
…google-tag-manager.
…. Passing via settings object.
…-gtm-target Add datalayer renaming to gtm target
…-gtm-target Made dist folder available.
…naming-to-gtm-target Revert "Made dist folder available."
There was a problem hiding this 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:
- Could you update google-tag-manager-node-env.test.js to use the new function signature?
- (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)', () => { |
There was a problem hiding this comment.
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.
|
Fixes #97 This is excellent! And it'll be included as part of the next release (probably in one week's time). |
GoogleTagManager new signature is like
GoogleTagManager({ ...settings })(eventArray)
implemented dataLayerName setting. Default value is
'dataLayer'