Skip to content

Commit

Permalink
Add the custom parameters to the window.gtag call as well
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Dec 10, 2024
1 parent f5c020c commit 08398ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/autosuggest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ function triggerAutosuggestEvent(detail) {
*/
if (typeof window?.gtag === 'function') {
window.gtag('event', action, {
ep_autosuggest_search_term: detail.searchTerm,
ep_autosuggest_clicked_url: detail.url,
event_category: 'EP :: Autosuggest',
event_label: detail.url,
transport_type: 'beacon',
Expand Down

0 comments on commit 08398ef

Please sign in to comment.