Skip to content

Commit

Permalink
get feedbacks on search
Browse files Browse the repository at this point in the history
  • Loading branch information
TixieSalander committed Oct 1, 2022
1 parent 9cc01a2 commit 2ec1925
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/_includes/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}

}
Expand Down

0 comments on commit 2ec1925

Please sign in to comment.