Closed chalin closed 1 year ago
Name | Link |
---|---|
Latest commit | 792cd9cf9adfae509e64961829640e095392c55b |
Latest deploy log | https://app.netlify.com/sites/vitess/deploys/64a060630bbe97000884081b |
Deploy Preview | https://deploy-preview-1519--vitess.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
search
event to GA4 with the search term as an attribute, at no more than the debounce rate.click
event handler to each search-result item. When a user clicks on a search result, aclick
event is sent to GA4 with the destination link and associated search term as attributes.A note about the deploy preview: the site preview will allow you to confirm that search is still functional, but it won't generate GA4 events, since analytics is only enabled in production. When
_debug
is enabled (which it was for my original commit, but has since been disabled), you can at least see that the tracking functions get called, like this:I've locally built a "production" version of the site, and can confirm that GA4 is receiving both
search
andclick
(related to search) events. Notice thesearch_term
attribute in both events:search
event with event count of 1:click
-event screenshot/cc @harshit-gangal @thisisobate @nate-double-u