chore: analytics

This commit is contained in:
Cory Dransfeldt 2024-03-24 08:15:21 -07:00
parent 6e5c5c5725
commit 7e0259aafd
No known key found for this signature in database
14 changed files with 40 additions and 34 deletions

View file

@ -29,6 +29,7 @@
const query = $input.value
const results = (query.length > 1) ? getSearchResults(query) : []
if (query === '') renderSearchResults([])
if (results && fathom) fathom?.trackEvent(`Search query: ${query}`)
renderSearchResults(results)
})