mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
refactor(tracker): better tracker injection
This commit is contained in:
@@ -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