Skip to content

Commit

Permalink
better handle event_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jul 17, 2024
1 parent 10a38a0 commit e475719
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ const onEvent =

if (pageview) {
payload.events = '[["pageview", null]]'
if (!payload.event_id) {
payload.event_id = eventId
}
payload.event_id = payload.event_id || eventId
}

// Handle twitter click id
Expand Down

0 comments on commit e475719

Please sign in to comment.