Skip to content

Commit 71b552c

Browse files
committed
demo event
1 parent c664d9b commit 71b552c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

layouts/partials/head/analytics.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@
1414
window.addEventListener('load', (event) => {
1515
document.querySelectorAll('a').forEach(item => {
1616
let url = item.getAttribute('href');
17+
1718
if (url && url.startsWith('https://dbgate.io')) {
1819
item.addEventListener('click', event => {
1920
fathom.trackEvent('moveto-premium');
2021
});
2122
}
23+
24+
if (url && url.startsWith('https://demo.dbgate.org')) {
25+
item.addEventListener('click', event => {
26+
fathom.trackEvent('open-demo');
27+
});
28+
}
2229
});
2330
});
2431
</script>

0 commit comments

Comments
 (0)