Skip to content

Commit

Permalink
fix(website): track kuid event directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jan 24, 2025
1 parent eaa2622 commit d7dfe0d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions plugins/cookieconsent.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,12 @@ export default defineNuxtPlugin(nuxtApp => {

posthog.capture('$pageview');

window.setTimeout(() => {
gtm?.trackEvent({
event: 'identify',
category: 'sys',
noninteraction: true,
kuid: response.data.id
})
}, 5000)

gtm?.trackEvent({
event: 'identify',
category: 'sys',
noninteraction: true,
kuid: response.data.id
})

gtm?.trackView(route.name, route.fullPath);
};
Expand Down

0 comments on commit d7dfe0d

Please sign in to comment.