Skip to content

refactor: adds v6 modal tracking key integration_identifier#1196

Merged
Seavenly merged 4 commits intodevelopfrom
feature/v6-modal-tracking
May 13, 2025
Merged

refactor: adds v6 modal tracking key integration_identifier#1196
Seavenly merged 4 commits intodevelopfrom
feature/v6-modal-tracking

Conversation

@danzhaaspaypal
Copy link
Contributor

@danzhaaspaypal danzhaaspaypal commented Apr 29, 2025

Adds integration_identifier for tracking when a modal is integrated via the standalone vs message-linked integration.

integration_identifier: describes if the modal was integrated as standalone or rather with a message. Sample value: messagesModal

Description

Allows tracking of integration_identifier.
Takes integration_identifier query params that originated in v6 wrapper and passes it to glog as INTEGRATION_ID.

Screenshots

Standalone modal sample output (has INTEGRATION_ID)
Screenshot 2025-05-01 at 10 14 45 AM

Testing instructions

When looking at v6 demo page, check the glog output of modal events onShow, onCalculate, and onClose. For the standalone modal only, component key INTEGRATION_ID should have value messagesModal; the key will be absent for a normal message's modal.

@danzhaaspaypal danzhaaspaypal marked this pull request as ready for review May 1, 2025 14:44
@danzhaaspaypal danzhaaspaypal changed the title feat: adds v6 tracking keys feat: adds v6 tracking key integration_identifier May 6, 2025
@danzhaaspaypal danzhaaspaypal changed the title feat: adds v6 tracking key integration_identifier feat: adds v6 modal tracking key integration_identifier May 6, 2025
Copy link
Contributor

@merlinpaypal merlinpaypal left a comment

Choose a reason for hiding this comment

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

Not blockers but src/components/modal/v2/lib/postMessage.js and src/components/modal/v2/parts/InlineLinks.jsx have lint warnings. Since those seem intentional, perhaps we could add // eslint-disable-next-line no-console and // eslint-disable-next-line react/no-danger to those lines so we don't get the warnings.

The actual PR content looks good to me

@Seavenly Seavenly changed the title feat: adds v6 modal tracking key integration_identifier refactor: adds v6 modal tracking key integration_identifier May 13, 2025
@Seavenly Seavenly merged commit 63d9691 into develop May 13, 2025
50 checks passed
@Seavenly Seavenly deleted the feature/v6-modal-tracking branch May 13, 2025 20:48
github-actions bot pushed a commit that referenced this pull request May 13, 2025
### [1.68.3](v1.68.2...v1.68.3) (2025-05-13)

### Code Refactoring

* adds v6 modal tracking key integration_identifier ([#1196](#1196)) ([63d9691](63d9691))
@github-actions
Copy link

🎉 This PR is included in version 1.68.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants