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

fix: send default and update consent payloads on kit init #61

Conversation

mmustafa-tse
Copy link
Contributor

Summary

  • Same summary as this PR we had for the GTM kit

Testing Plan

  • [Y] Was this tested locally? If not, explain why.
  • Tested E2E locally with overrides as well as unit tested

Master Issue

Closes https://mparticle-eng.atlassian.net/browse/SQDSDKS-6815

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
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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)

Copy link
Collaborator

@rmi22186 rmi22186 left a 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

@rmi22186 rmi22186 merged commit ec0bf79 into mparticle-integrations:development Oct 8, 2024
4 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 9, 2024
## [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))
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