Repository navigation
[No QA] Send NPS score and response date to FullStory - #104452
Conversation
inimaga
left a comment
There was a problem hiding this comment.
Thanks for raising this PR. Could you also update the call inside setUserVars, In the web adapter at src/libs/Fullstory/index.ts,
From:
FullStory(CONST.FULLSTORY.OPERATION.SET_PROPERTIES, {
type: 'user',
properties: userVars,
});To:
FullStory(CONST.FULLSTORY.OPERATION.SET_PROPERTIES, {
type: 'user',
properties: userVars,
schema: {
properties: {
nps_response_date: 'date',
},
},
});This would explicitly tell FullStory to treat the property as a date.
|
Done, web now declares nps_response_date as a date in the setProperties schema. Thanks! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 inimaga has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/inimaga in version: 9.5.28-4 🚀
|
|
No help site update needed. This PR only sends NPS score and response date to FullStory for internal analytics, so nothing changes in the app that users can see or do. |
|
🚀 Deployed to staging by https://github.com/inimaga in version: 9.5.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.30-0 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Sends the new
userMetadatafields from Auth PR 25673 to FullStory asnps_scoreandnps_response_date. The date is converted toDatelikefree_trial_end_date. Web declares it as adatein thesetPropertiesschema and native adds the_datesuffix, so FullStory types it as a date on both. Users who never answered an NPS survey have no fields, so nothing is sent for them.Fixed Issues
$ #103321
PROPOSAL: N/A
Tests
npm test -- tests/unit/FullstoryUtilsTest.ts.nps_scoreandnps_response_dateare built fromuserMetadata.Offline tests
N/A. No network behavior changes.
QA Steps
FullStory only runs on production, so this can't be tested on staging.
nps_scoreandnps_response_dateare set.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A, no UI change.
Android: mWeb Chrome
N/A, no UI change.
iOS: Native
N/A, no UI change.
iOS: mWeb Safari
N/A, no UI change.
MacOS: Chrome / Safari
N/A, no UI change.