diff --git a/src/components/blocks/hero.svelte b/src/components/blocks/hero.svelte index a0566781..e9cddbb1 100644 --- a/src/components/blocks/hero.svelte +++ b/src/components/blocks/hero.svelte @@ -6,7 +6,6 @@ import Slogan from '$components/slogan.svelte'; import { drawerLinks } from '$lib/actions/drawer-links'; import { VIDEO_EXTENSIONS } from '$lib/constants'; - import { TrackingEvent } from '$lib/track'; import { getImageAttributes } from '$lib/utils/cms'; import { getFileExtension } from '$lib/utils/strings'; @@ -51,7 +50,6 @@ ? getImageAttributes(block.showreel_cover).src : undefined} buttonTheme={block.showreel_button_theme} - trackEvent={{ event: TrackingEvent.HOME_REEL }} /> {/if} diff --git a/src/components/blocks/rich-text-box.svelte b/src/components/blocks/rich-text-box.svelte index ebeaa729..e32cb6dd 100644 --- a/src/components/blocks/rich-text-box.svelte +++ b/src/components/blocks/rich-text-box.svelte @@ -1,7 +1,5 @@
@@ -217,7 +212,6 @@ toast.success({ message: t('draw-segg.clipboard.feedback') }); - track(TrackingEvent.DRAW_YOUR_SEGG_COPY); }} > copy link @@ -227,9 +221,6 @@ { - track(TrackingEvent.DRAW_YOUR_SEGG_DOWNLOAD); - }} href={canvas?.toDataURL('image/png')}>download {/key} diff --git a/src/components/page-drawer.svelte b/src/components/page-drawer.svelte index ac7c9854..63d83369 100644 --- a/src/components/page-drawer.svelte +++ b/src/components/page-drawer.svelte @@ -9,7 +9,6 @@ import { page } from '$app/stores'; import { fetchPage } from '$lib/content'; import { setContext } from 'svelte'; - import { TrackingEvent, track } from '$lib/track'; let expanding = false; @@ -42,13 +41,6 @@ variant="ghost" icon="expand" on:click={() => { - if ($drawer) { - track(TrackingEvent.DRAWER_EXPAND, { - props: { - to: $drawer - } - }); - } expanding = true; }}>{t('expand')} diff --git a/src/components/pages/about/timeline.svelte b/src/components/pages/about/timeline.svelte index 7a92447d..2ddb9269 100644 --- a/src/components/pages/about/timeline.svelte +++ b/src/components/pages/about/timeline.svelte @@ -1,8 +1,6 @@
- import { track, type TrackingEventProps } from '$lib/track'; import clsx from 'clsx'; export let images: string[]; @@ -7,15 +6,8 @@ export let top: number | undefined; export let left: number | undefined; export let rotate: number | undefined; - export let trackEvent: TrackingEventProps | undefined = undefined; let active = 0; - let hasMadeOneCycle = false; - - $: if (active === images.length - 1 && !hasMadeOneCycle && trackEvent) { - track(trackEvent.event, trackEvent.options); - hasMadeOneCycle = true; - } function next() { active = (active + 1) % images.length; diff --git a/src/components/pages/careers/canvas-items/egg-hatching.svelte b/src/components/pages/careers/canvas-items/egg-hatching.svelte index 49323320..3a97c44b 100644 --- a/src/components/pages/careers/canvas-items/egg-hatching.svelte +++ b/src/components/pages/careers/canvas-items/egg-hatching.svelte @@ -1,5 +1,4 @@ @@ -37,12 +35,6 @@ style="left: {item.left || 0}px; top: {item.top || 0}px; transform: rotate({item.rotate || 0}deg); perspective: 1000px" class="h-[300px] w-[200px]" - on:click={() => { - if (!hasInteracted) { - track(TrackingEvent.CAREERS_CANVAS_FLIPPED_TAROT); - hasInteracted = true; - } - }} >
{ gameState = 'in-progress'; @@ -90,14 +88,6 @@ }, 500); }; - $: if ( - (gameState === 'win' || gameState === 'lose' || gameState === 'draw') && - !userHasPlayedOneGame - ) { - userHasPlayedOneGame = true; - track(TrackingEvent.CAREERS_CANVAS_PLAYED_TIC_TAC_TOE); - } - $: if (tiles.filter((tile) => tile === -9).length === 0 && gameState === 'in-progress') gameState = 'draw'; diff --git a/src/components/pages/careers/canvas.svelte b/src/components/pages/careers/canvas.svelte index e100a449..58e6305b 100644 --- a/src/components/pages/careers/canvas.svelte +++ b/src/components/pages/careers/canvas.svelte @@ -16,7 +16,6 @@ import Plant from './canvas-items/plant.svelte'; import Egg from './canvas-items/egg.svelte'; import EggHatching from './canvas-items/egg-hatching.svelte'; - import { TrackingEvent, track } from '$lib/track'; const MINIMAP_W = 128; const MINIMAP_PADDING = 8; @@ -79,8 +78,7 @@ bind:this={container} use:dragScrolling={{ isActive: withMouseDragScroll, - centerYOffset: -240, - onInteraction: () => track(TrackingEvent.CAREERS_INTERACT_WITH_CANVAS) + centerYOffset: -240 }} use:scrollPosition={(left, top) => { boxLeft = left; diff --git a/src/components/pages/home-page.svelte b/src/components/pages/home-page.svelte index 855583f0..6f9b1f72 100644 --- a/src/components/pages/home-page.svelte +++ b/src/components/pages/home-page.svelte @@ -16,7 +16,6 @@ import { afterNavigate } from '$app/navigation'; import { getAnchorFromCmsLink, getImageAttributes } from '$lib/utils/cms'; import Services from './home/services.svelte'; - import { TrackingEvent, track } from '$lib/track'; import { drawerLinks } from '$lib/actions/drawer-links'; import { t } from '$lib/i18n'; import Testimonials from '$components/blocks/testimonials.svelte'; @@ -62,7 +61,6 @@ ? getImageAttributes(data.showreel_cover).src : undefined} buttonTheme={data.showreel_button_theme} - trackEvent={{ event: TrackingEvent.HOME_REEL }} /> {/if}
@@ -125,11 +123,6 @@ { - track(TrackingEvent.CAREER_CLICK, { - props: { name: career.name, to: career.full_slug, path: $page.url.pathname } - }); - }} > {career.name}
- {data.careers_button_label}