mirror of
https://github.com/GuerillaStudio/vanillalist.git
synced 2024-12-30 11:51:57 +00:00
get feedbacks on search
This commit is contained in:
parent
9cc01a2e6a
commit
2ec1925533
1 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,14 @@ class PluginSearch {
|
||||||
history.replaceState(null, null, "?" + queryParams.toString());
|
history.replaceState(null, null, "?" + queryParams.toString());
|
||||||
this.searchEntry = new URLSearchParams(document.location.search.substring(1)).get('s')
|
this.searchEntry = new URLSearchParams(document.location.search.substring(1)).get('s')
|
||||||
this.generateResults(this.filterResults(plugins))
|
this.generateResults(this.filterResults(plugins))
|
||||||
|
// Return searched keywords
|
||||||
|
this.feedbackSearch()
|
||||||
|
}
|
||||||
|
|
||||||
|
feedbackSearch () {
|
||||||
|
if (window.umami) {
|
||||||
|
window.umami.trackEvent('Search', { entry: this.searchEntry });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue