We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c664d9b commit 71b552cCopy full SHA for 71b552c
layouts/partials/head/analytics.html
@@ -14,11 +14,18 @@
14
window.addEventListener('load', (event) => {
15
document.querySelectorAll('a').forEach(item => {
16
let url = item.getAttribute('href');
17
+
18
if (url && url.startsWith('https://dbgate.io')) {
19
item.addEventListener('click', event => {
20
fathom.trackEvent('moveto-premium');
21
});
22
}
23
24
+ if (url && url.startsWith('https://demo.dbgate.org')) {
25
+ item.addEventListener('click', event => {
26
+ fathom.trackEvent('open-demo');
27
+ });
28
+ }
29
30
31
</script>
0 commit comments