Skip to content

Commit c664d9b

Browse files
committed
moveto - premium event
1 parent 6f7ce58 commit c664d9b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

layouts/partials/head/analytics.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,17 @@
88
gtag('config', 'G-RXLRS09RMZ');
99
</script>
1010

11-
<script src="https://cdn.usefathom.com/script.js" data-site="HBACGPGP" defer></script>
11+
<script src="https://cdn.usefathom.com/script.js" data-site="HBACGPGP" defer></script>
12+
13+
<script>
14+
window.addEventListener('load', (event) => {
15+
document.querySelectorAll('a').forEach(item => {
16+
let url = item.getAttribute('href');
17+
if (url && url.startsWith('https://dbgate.io')) {
18+
item.addEventListener('click', event => {
19+
fathom.trackEvent('moveto-premium');
20+
});
21+
}
22+
});
23+
});
24+
</script>

0 commit comments

Comments
 (0)