Skip to content

Commit b56e084

Browse files
committed
download event
1 parent 3b4da6f commit b56e084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/shortcodes/download.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h2>Download DbGate Community</h2>
4444

4545
<div class="column is-4">
4646
<a class="button is-medium is-primary is-fullwidth" {{ if .isLink }} href="{{ .link }}"
47-
onClick="sendDownloadEventToGoatCounter('{{ .event }}')" {{ else }}
47+
onClick="sendDownloadEventToGoatCounter('{{ .event }}');fathom.trackEvent('download-community');" {{ else }}
4848
onClick="openDownloadModal('{{ .link }}', '{{ .event }}', '{{ .icon }}', '{{ $osname }}', '{{ .text }}', '{{ .platform }}')"
4949
{{ end }}>
5050
<i class="{{ .icon }} mr-2"></i>
@@ -140,6 +140,7 @@ <h2>Please provide your e-mail address</h2>
140140
const doDownload = () => {
141141
window.closeDownloadData = null;
142142
sendDownloadEventToGoatCounter(event);
143+
fathom.trackEvent('download-community');
143144
const modal = document.getElementById('download-modal');
144145
modal.classList.remove('is-active');
145146

0 commit comments

Comments
 (0)