chore: analytics tweaks

This commit is contained in:
Cory Dransfeldt 2023-07-05 15:42:44 -07:00
parent 0fa3fd28ed
commit e7a1b8b012
No known key found for this signature in database
2 changed files with 0 additions and 8 deletions

View file

@ -57,7 +57,6 @@
{% jsonLd meta, type, tags %}
</script>
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<noscript>
<style>.client-side {display:none}</style>
</noscript>

View file

@ -36,11 +36,4 @@ meta:
</style>
<div id="search" class="search"></div>
<script src="/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script>
<script>
if (plausible) {
document.querySelector('#search').addEventListener('focusout', (e) => {
plausible('Search', { props: { query: e.target.value }})
})
}
</script>
{% include "popular-posts.liquid" %}