feat: add quick filters analytics

This commit is contained in:
Arman
2024-08-13 14:40:19 +02:00
parent 01a06ac97e
commit 6db75afe8f
4 changed files with 37 additions and 6 deletions
+3 -1
View File
@@ -12,6 +12,7 @@
export let external = false;
export let href: string = null;
export let event: string = null;
export let eventData: Record<string, unknown> = {};
export let style = '';
let classes = '';
export { classes as class };
@@ -22,7 +23,8 @@
}
trackEvent(`click_${event}`, {
from: 'tag'
from: 'tag',
...eventData
});
}
</script>