[JourneysVs] - add presets for new journey event emitter#3750
[JourneysVs] - add presets for new journey event emitter#3750hema-segment wants to merge 9 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds new Journey “all triggers” event presets to select audience destinations, and updates @segment/actions-core to a newer @segment/action-emitters build that presumably introduces/supports the new event emitter.
Changes:
- Bumps
@segment/action-emittersin@segment/actions-coreto1.3.9-canary.0(and updatesyarn.lockaccordingly). - Adds a new preset for
journeys_step_all_triggers_trackto TikTok Audiences, DV360, Facebook Custom Audiences, and Google Enhanced Conversions.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updates lockfile to include @segment/action-emitters@1.3.9-canary.0. |
| packages/core/package.json | Pins @segment/action-emitters to a canary pre-release. |
| packages/destination-actions/src/destinations/tiktok-audiences/index.ts | Adds a new “Journeys Step All Trigger” preset for the new Journey event slug. |
| packages/destination-actions/src/destinations/google-enhanced-conversions/index.ts | Adds a new “Journeys Step All Trigger” preset (only for uploadCallConversion2). |
| packages/destination-actions/src/destinations/facebook-custom-audiences/presets.ts | Adds a new “Journeys Step All Trigger” preset for the new Journey event slug. |
| packages/destination-actions/src/destinations/display-video-360/index.ts | Adds a new “Journeys Step All Trigger” preset for the new Journey event slug. |
| { | ||
| name: 'Journeys Step All Trigger', | ||
| partnerAction: 'uploadCallConversion2', | ||
| mapping: defaultValues(uploadCallConversion2.fields), | ||
| type: 'specificEvent', | ||
| eventSlug: 'journeys_step_all_triggers_track' | ||
| } |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3750 +/- ##
==========================================
+ Coverage 81.08% 81.11% +0.03%
==========================================
Files 1655 1656 +1
Lines 32079 32120 +41
Branches 7070 7116 +46
==========================================
+ Hits 26011 26055 +44
+ Misses 5096 5092 -4
- Partials 972 973 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds presets to support the new Journeys event emitter (journeys_step_all_triggers_track) across select audience destinations, and updates the core @segment/action-emitters dependency to a newer version.
Changes:
- Bumped
@segment/action-emittersto1.3.9(and updated lockfile accordingly). - Added a new “Journeys Step All Triggers” preset for Facebook Custom Audiences and Google Enhanced Conversions.
- Added TODO/commented-out presets for the same event in TikTok Audiences and Display & Video 360 (not yet enabled).
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updates resolved @segment/action-emitters version to 1.3.9. |
| packages/core/package.json | Bumps @segment/action-emitters dependency to 1.3.9 (currently pinned). |
| packages/destination-actions/src/destinations/tiktok-audiences/index.ts | Adds TODO/commented-out preset for journeys_step_all_triggers_track. |
| packages/destination-actions/src/destinations/google-enhanced-conversions/index.ts | Adds an enabled preset for journeys_step_all_triggers_track. |
| packages/destination-actions/src/destinations/facebook-custom-audiences/presets.ts | Adds an enabled preset for journeys_step_all_triggers_track. |
| packages/destination-actions/src/destinations/display-video-360/index.ts | Adds TODO/commented-out preset for journeys_step_all_triggers_track. |
| //TODO: uncomment this once the sync action is deployed | ||
| // https://github.com/segmentio/action-destinations/pull/3696/changes#diff-08e8fc99bc5b1d623022a7d1126485c0d0caf09a086c22e69a408cf8e9a4339e | ||
| // { | ||
| // name: 'Journeys Step All Triggers', | ||
| // partnerAction: 'syncAudience', | ||
| // mapping: defaultValues(syncAudience.fields), | ||
| // type: 'specificEvent', | ||
| // eventSlug: 'journeys_step_all_triggers_track' | ||
| // } |
| type: 'specificEvent', | ||
| eventSlug: 'journeys_step_entered_track' | ||
| } | ||
| //TODO: uncomment this once the sync action is deployed |
| "dependencies": { | ||
| "@lukeed/uuid": "^2.0.0", | ||
| "@segment/action-emitters": "^1.3.6", | ||
| "@segment/action-emitters": "1.3.9", |
| //TODO: uncomment this once the tik tok changes are applied as part of | ||
| // https://github.com/segmentio/action-destinations/pull/3732/changes#diff-820724a64b4d01bee37a38690220879172da2720386b7c98cd1c06d86275792a | ||
| // { | ||
| // name: 'Journeys Step All Triggers', | ||
| // partnerAction: 'syncAudience', | ||
| // mapping: defaultValues(sync.fields), | ||
| // type: 'specificEvent', | ||
| // eventSlug: 'journeys_step_all_triggers_track' | ||
| // } |
| type: 'specificEvent', | ||
| eventSlug: 'journeys_step_entered_track' | ||
| } | ||
| //TODO: uncomment this once the tik tok changes are applied as part of |
| type: 'specificEvent', | ||
| eventSlug: 'journeys_step_entered_track' | ||
| } | ||
| //TODO: uncomment this once the tik tok changes are applied as part of |
|
Still in draft - @hema-segment will let me know when this is to be reviewed. |
…dCallConversion2 The journeys_step_all_triggers_track preset should use the userList action (audience membership sync) not uploadCallConversion2 (call conversions).
There was a problem hiding this comment.
Pull request overview
Adds support for a new Journeys event slug by updating the action emitter dependency and introducing new presets that subscribe to the new Journeys “all triggers” event in supported destinations.
Changes:
- Bumps
@segment/action-emittersto1.3.12(and updatesyarn.lockaccordingly). - Adds a new
Journeys Step All Triggerspreset for Google Enhanced Conversions and Facebook Custom Audiences. - Adds commented-out (TODO) preset stubs for TikTok Audiences and Display & Video 360.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updates lockfile to the newer @segment/action-emitters version. |
| packages/core/package.json | Updates @segment/action-emitters dependency version. |
| packages/destination-actions/src/destinations/google-enhanced-conversions/index.ts | Adds a Journeys Step All Triggers preset using journeys_step_all_triggers_track. |
| packages/destination-actions/src/destinations/facebook-custom-audiences/presets.ts | Adds a Journeys Step All Triggers preset using journeys_step_all_triggers_track. |
| packages/destination-actions/src/destinations/tiktok-audiences/index.ts | Adds a TODO/commented-out preset block for the new event. |
| packages/destination-actions/src/destinations/display-video-360/index.ts | Adds a TODO/commented-out preset block for the new event. |
| "dependencies": { | ||
| "@lukeed/uuid": "^2.0.0", | ||
| "@segment/action-emitters": "^1.3.6", | ||
| "@segment/action-emitters": "1.3.12", |
There was a problem hiding this comment.
@segment/action-emitters is pinned to an exact version while the rest of this package’s dependencies use semver ranges. Unless there’s a specific reason to lock to exactly 1.3.12, consider switching back to a range (e.g., ^1.3.12) to receive patch/minor fixes and avoid unnecessary lockfile churn.
| "@segment/action-emitters": "1.3.12", | |
| "@segment/action-emitters": "^1.3.12", |
| //TODO: uncomment this once the tik tok changes are applied as part of | ||
| // https://github.com/segmentio/action-destinations/pull/3732/changes#diff-820724a64b4d01bee37a38690220879172da2720386b7c98cd1c06d86275792a | ||
| // { | ||
| // name: 'Journeys Step All Triggers', | ||
| // partnerAction: 'syncAudience', | ||
| // mapping: defaultValues(sync.fields), | ||
| // type: 'specificEvent', | ||
| // eventSlug: 'journeys_step_all_triggers_track' | ||
| // } |
There was a problem hiding this comment.
This adds a commented-out preset with a TODO to “uncomment later”, but uncommenting it won’t work as-is: it references sync/syncAudience that aren’t defined/imported in this file, and the array would also need a comma separator before the new element. Prefer removing the commented-out block and landing the preset in the PR that introduces the required action (or at least track it via an issue without leaving dead code in the presets array).
| //TODO: uncomment this once the tik tok changes are applied as part of | |
| // https://github.com/segmentio/action-destinations/pull/3732/changes#diff-820724a64b4d01bee37a38690220879172da2720386b7c98cd1c06d86275792a | |
| // { | |
| // name: 'Journeys Step All Triggers', | |
| // partnerAction: 'syncAudience', | |
| // mapping: defaultValues(sync.fields), | |
| // type: 'specificEvent', | |
| // eventSlug: 'journeys_step_all_triggers_track' | |
| // } |
| //TODO: uncomment this once the sync action is deployed | ||
| // https://github.com/segmentio/action-destinations/pull/3696/changes#diff-08e8fc99bc5b1d623022a7d1126485c0d0caf09a086c22e69a408cf8e9a4339e | ||
| // { | ||
| // name: 'Journeys Step All Triggers', | ||
| // partnerAction: 'syncAudience', | ||
| // mapping: defaultValues(syncAudience.fields), | ||
| // type: 'specificEvent', | ||
| // eventSlug: 'journeys_step_all_triggers_track' | ||
| // } |
There was a problem hiding this comment.
This adds a commented-out preset with a TODO to “uncomment later”, but uncommenting it won’t work as-is: it references syncAudience that isn’t defined/imported or registered in this destination’s actions, and the presets array would need a comma separator before the new element. Prefer removing the commented-out block and landing the preset alongside the PR that adds the new action.
| //TODO: uncomment this once the sync action is deployed | |
| // https://github.com/segmentio/action-destinations/pull/3696/changes#diff-08e8fc99bc5b1d623022a7d1126485c0d0caf09a086c22e69a408cf8e9a4339e | |
| // { | |
| // name: 'Journeys Step All Triggers', | |
| // partnerAction: 'syncAudience', | |
| // mapping: defaultValues(syncAudience.fields), | |
| // type: 'specificEvent', | |
| // eventSlug: 'journeys_step_all_triggers_track' | |
| // } |
| type: 'specificEvent', | ||
| eventSlug: 'journeys_step_entered_track' | ||
| } | ||
| //TODO: uncomment this once the tik tok changes are applied as part of |
There was a problem hiding this comment.
Nit: the comment says “tik tok”; please capitalize the brand consistently ("TikTok").
| //TODO: uncomment this once the tik tok changes are applied as part of | |
| //TODO: uncomment this once the TikTok changes are applied as part of |
|
Hi @hema-segment |
A summary of your pull request, including the what change you're making and why.
Testing
Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.
Security Review
Please ensure sensitive data is properly protected in your integration.
type: 'password'New Destination Checklist
verioning-info.tsfile. example