File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ function sendDownloadEventToGoatCounter(event) {
8080 return ;
8181 }
8282
83+ fathom . trackEvent ( 'download-community' ) ;
84+
8385 window . goatcounter . count ( {
8486 path : event ,
8587 title : "Download: " + event ,
Original file line number Diff line number Diff line change 66 gtag ( 'js' , new Date ( ) ) ;
77
88 gtag ( 'config' , 'G-RXLRS09RMZ' ) ;
9+ </ script >
10+
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+
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+ } ) ;
931</ script >
You can’t perform that action at this time.
0 commit comments