feat: integrate GoatCounter analytics for event tracking across modals and snippets

This commit is contained in:
2025-10-16 22:59:54 +03:00
parent 8b056b66e7
commit e7d3669772
5 changed files with 65 additions and 0 deletions

View File

@@ -468,6 +468,8 @@ function openHelpModal() {
const modal = document.getElementById('help-modal');
if (modal) {
modal.style.display = 'flex';
// Track event
Analytics.track('modal-help', 'Open Help modal');
}
}
@@ -483,6 +485,8 @@ function openDonateModal() {
const modal = document.getElementById('donate-modal');
if (modal) {
modal.style.display = 'flex';
// Track event
Analytics.track('modal-donate', 'Open Donate modal');
}
}