Skip to content

Commit 139518d

Browse files
committed
Refactor tracking event names for consistency and clarity
1 parent cd27096 commit 139518d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/lib/components/KoFiSupportModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
const handleClick = () => {
2727
localStorage.setItem('kofi-support-shown', 'true');
2828
ref.close();
29-
trackEvent('modal-action', { modal: 'kofi-support', action: 'kofi-clicked' });
29+
trackEvent('modal-action-kofi', { action: 'kofi-clicked' });
3030
};
3131
3232
const handleDismiss = () => {
3333
localStorage.setItem('kofi-support-shown', 'true');
3434
ref.close();
35-
trackEvent('modal-action', { modal: 'kofi-support', action: 'maybe-later' });
35+
trackEvent('modal-action-kofi', { action: 'maybe-later' });
3636
};
3737
</script>
3838

src/lib/components/LeaveAStarModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
const click = () => {
2727
localStorage.setItem('leaved-a-star', 'yup');
2828
ref.close();
29-
trackEvent('modal-action', { modal: 'github-star', action: 'star-clicked' });
29+
trackEvent('modal-action-github', { action: 'star-clicked' });
3030
};
3131
3232
const dismiss = () => {
33-
trackEvent('modal-action', { modal: 'github-star', action: 'maybe-later' });
33+
trackEvent('modal-action-github', { action: 'maybe-later' });
3434
};
3535
</script>
3636

src/lib/components/RangeArraySizePowerOfTwo.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
1616
const handleChange = () => {
17-
trackEvent('array-size-changed', { size, type: 'power-of-two' });
17+
trackEvent('array-size-changed', { size });
1818
};
1919
</script>
2020

src/lib/components/mobile/MobileAlgorithmSelector.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const [group, index] = value.split(',');
1111
const algo = algorithms[Number(group)][Number(index)];
1212
selectAlgorithm(algo);
13-
trackEvent('algorithm-selected', { algorithm: algo.name, device: 'mobile' });
13+
trackEvent('algorithm-selected', { algorithm: algo.name });
1414
};
1515
</script>
1616

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<svelte:head>
22
<script
33
defer
4-
src="https://umami.szula.top/script.js"
4+
src="https://analytics.szula.top/script.js"
55
data-website-id="bf5d6c23-719c-4412-a957-eb05e36cfbc3"
66
></script>
77

0 commit comments

Comments
 (0)