Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Autosuggest Results Unresponsive with Google Analytics Tracking Enabled and Script Blockers Active #3925

Open
1 task done
anjulahettige opened this issue Jun 3, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@anjulahettige
Copy link
Collaborator

anjulahettige commented Jun 3, 2024

Describe the bug

Description

When Google Analytics tracking is enabled on a site using ElasticPress Autosuggest, the autosuggest functionality becomes unresponsive if script or tracking blockers are used in the browser. Clicking on autosuggest results fails, accompanied by a JavaScript TypeError in the console.

Expected Behavior

Autosuggest results should be clickable, and clicking on a result should navigate to the relevant content.

Actual Behavior

Clicks on autosuggest results do not respond. An error is logged in the browser's console.

Steps to Reproduce

  1. Visit https://demo.elasticpress.io/ using a browser with script blocking enabled (e.g., Brave's script blocker or the uBlock Origin extension).
  2. Enable tracking/script blocking features.
  3. Attempt to use the autosuggest feature by typing a search term in the search bar.
  4. Click on any of the autosuggest results.

Screenshots, screen recording, code snippet

No response

Environment information

  • Browser: Google Chrome
  • Tracking Scripts blocked by NextDNS.io

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@anjulahettige anjulahettige added the bug Something isn't working label Jun 3, 2024
@felipeelia felipeelia added this to the 5.2.0 milestone Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants