Skip to content

Commit

Permalink
add pageview event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Nov 27, 2023
1 parent b314f28 commit 7a08e72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ export const handler = (
}

export default async function (manager: Manager, settings: ComponentSettings) {
manager.addEventListener('pageview', event => {
handler('pagevisit', event, settings)
})

manager.addEventListener('event', event => {
const eventType = event.payload.ev
handler(eventType, event, settings)
Expand Down

0 comments on commit 7a08e72

Please sign in to comment.