1
0
Fork 0
mirror of https://github.com/GuerillaStudio/vanillalist.git synced 2024-10-22 17:37:29 +00:00

get feedbacks on search

This commit is contained in:
Tixie 2022-10-01 11:30:57 +02:00
parent 9cc01a2e6a
commit 2ec1925533

View file

@ -59,6 +59,14 @@ class PluginSearch {
history.replaceState(null, null, "?" + queryParams.toString());
this.searchEntry = new URLSearchParams(document.location.search.substring(1)).get('s')
this.generateResults(this.filterResults(plugins))
// Return searched keywords
this.feedbackSearch()
}
feedbackSearch () {
if (window.umami) {
window.umami.trackEvent('Search', { entry: this.searchEntry });
}
}
}