Skip to content

Commit

Permalink
ZRZ-1324 mark ecommerce events conversion event by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jun 11, 2024
1 parent f145906 commit 9ec1ba0
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 9ec1ba0

Please sign in to comment.