chore: analytics + deps

This commit is contained in:
Cory Dransfeldt 2024-06-06 09:20:21 -07:00
parent 4ae4a7416e
commit bf6d4f446b
No known key found for this signature in database
14 changed files with 55 additions and 54 deletions

View file

@ -32,7 +32,7 @@ permalink: /search.html
const query = $input.value
const results = (query.length > 1) ? getSearchResults(query) : []
if (query === '') renderSearchResults([])
if (results && window.clicky) clicky.log('/search', query, 'click')
if (results && typeof plausible === 'function') plausible('Search', { props: { query: query } });
renderSearchResults(results)
})