From d7dfe0dda687d50992db15fe4e8e2a69978760c8 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Fri, 24 Jan 2025 22:09:11 +0100 Subject: [PATCH] fix(website): track kuid event directly --- plugins/cookieconsent.client.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/cookieconsent.client.ts b/plugins/cookieconsent.client.ts index abfbbf7dc4..a5eddbdcfd 100644 --- a/plugins/cookieconsent.client.ts +++ b/plugins/cookieconsent.client.ts @@ -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); };