refactor(tracker): better tracker injection
This commit is contained in:
6 files changed
+67
-37
No files matched your search
+3
-1
@@ -1,7 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { useTracker } from '@/modules/tracker/tracker.services';
|
||||
import { useHead } from '@vueuse/head';
|
||||
|
||||
useHead({ title: 'About - IT Tools' });
|
||||
const { tracker } = useTracker();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -25,7 +27,7 @@ useHead({ title: 'About - IT Tools' });
|
||||
href="https://github.com/sponsors/CorentinTh"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
@click="() => $tracker.trackEvent({ eventName: 'Support button clicked' })"
|
||||
@click="() => tracker.trackEvent({ eventName: 'Support button clicked' })"
|
||||
>
|
||||
sponsoring me </n-button
|
||||
>.
|
||||
|
||||
Reference in new issue
Block a user