Skip to content

Commit

Permalink
Merge pull request #32 from managed-components/seg
Browse files Browse the repository at this point in the history
ZRZ-1324 mark ecommerce events conversion event by default
  • Loading branch information
ad-astra-via authored Jun 11, 2024
2 parents cb51784 + 9ec1ba0 commit ce102e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default async function (manager: Manager, settings: ComponentSettings) {
})

manager.addEventListener('ecommerce', async event => {
event.payload.conversion = true // set ecommerce events as conversion events
// count conversion events for 'seg' value
countConversion(event)
// order matters so engagement duration is set before dispatching the hit
Expand Down

0 comments on commit ce102e7

Please sign in to comment.