fix(shopify): extract email to context.traits for pixel app events#5041
fix(shopify): extract email to context.traits for pixel app events#5041ItsSudip merged 2 commits intohotfix/16hMar2026from
Conversation
🔒 Scanned for secrets using gitleaks 8.28.0
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## hotfix/16hMar2026 #5041 +/- ##
=====================================================
- Coverage 92.32% 92.27% -0.05%
=====================================================
Files 657 656 -1
Lines 36139 35915 -224
Branches 8531 8468 -63
=====================================================
- Hits 33365 33142 -223
+ Misses 2557 2535 -22
- Partials 217 238 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| message.setProperty('context.shopifyDetails', shopifyDetails); | ||
|
|
||
| // extract email from checkout data for pixel events | ||
| const email = data?.checkout?.email; |
There was a problem hiding this comment.
If this is applicable only for checkout events, move it to the respective functions under case blocks
There was a problem hiding this comment.
Yes, moved it to the checkout events section.
🔒 Scanned for secrets using gitleaks 8.28.0
|



🔒 Scanned for secrets using gitleaks 8.28.0
We are getting email inside
data.checkoutfor checkout-related events likecheckout_started,checkout_address_info_submitted,payment_info_submitted, etc. But we are not mapping them properly tocontext.traits.email, which is breaking the event flow in downstream destinations like Google Ads enhanced conversion. So, updated the logic to consider the mapping for checkout-related events.What is the related Linear task?
Resolves INT-6075
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.