Skip to content

Commit

Permalink
fix(site): add kuid when available
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Dec 18, 2024
1 parent 06d3cd3 commit c2b5c34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/cookieconsent.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ export default defineNuxtPlugin(nuxtApp => {
}

posthog.capture('$pageview');

if (window.signals) {
window.signals.identify({kuid: response.data.id})
}

if (window._hsq) {
_hsq.push(['identify', {id: response.data.id}]);
}
};

const enabledMarketing = () => {
Expand Down

0 comments on commit c2b5c34

Please sign in to comment.