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

Add search tracking #2533

Open
curtismchale opened this issue Mar 26, 2024 · 2 comments
Open

Add search tracking #2533

curtismchale opened this issue Mar 26, 2024 · 2 comments

Comments

@curtismchale
Copy link
Contributor

curtismchale commented Mar 26, 2024

Builds

Source
SR

What feature would you like to improve
Add search tracking to GA

Code to add search tracking is found in wp-proud-search/includes/js/wp-proud-search.js line 52. We should have to update the ga( to the newer gtag format found in proudcity analytics

Updates

26-03-2024

@curtismchale
Copy link
Contributor Author

@kevindherman I looked at this today and while the code is pushed and should be "simple" I see errors coming through the browser console when we try to push any events to GA.

To figure that out and get the search added I'd need to set up my test environment again for GA4 and test any events sending. Then figure out how I get our search plugin setup on that test environment (it hasn't typically been a full copy of our site code just the analytics portion) and continue testing.

Time investment...not sure until I figure out why we're not sending events and know what the fix is. A guess would be a few hours to setup and find the problem.

@curtismchale
Copy link
Contributor Author

I reverted my changes that had enabled the search tracking and still see the same POST errors so it's not something I introduced today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant