-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: send default and update consent payloads on kit init #61
fix: send default and update consent payloads on kit init #61
Conversation
packages/GA4Client/test/src/tests.js
Outdated
window.dataLayer[6][0].should.equal('consent'); | ||
window.dataLayer[6][1].should.equal('update'); | ||
window.dataLayer[6][2].should.deepEqual(expectedDataLayerFinal[2]); | ||
// Consent Update is index 5 |
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.
what is at index 4?
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 believe its the 'Test Event' event, will console.log it, confirm and add it for reference
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.
oh wait nvm, its the initial update since the new workflow doesn't merge defaults and fire two consent payloads on init (one default one update)
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.
just the one comment in the tests. maybe we should include what is at index 4. otherwise this lgtm
## [1.4.5](v1.4.4...v1.4.5) (2024-10-09) ### Bug Fixes * send default and update consent payloads on kit init ([#61](#61)) ([ec0bf79](ec0bf79))
Summary
Testing Plan
Master Issue
Closes https://mparticle-eng.atlassian.net/browse/SQDSDKS-6815