diff --git a/package.json b/package.json index 4025f611..d19a5010 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "8.4.5", + "version": "8.4.6", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/assets/scripts/search.js b/src/assets/scripts/search.js index 247860fb..495c5ecf 100644 --- a/src/assets/scripts/search.js +++ b/src/assets/scripts/search.js @@ -29,6 +29,7 @@ const query = $input.value const results = (query.length > 1) ? getSearchResults(query) : [] if (query === '') renderSearchResults([]) + if (results && plausible) plausible(`Search query: ${query}`) renderSearchResults(results) })