Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › No search terms are displayed in GA
This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years, 5 months ago.
- AuthorPosts
- March 14, 2022 at 2:23 pm #37159
Google Analytics Site Search is not working
Hi there,
as suggested from your side I’ve done the following configuration on page http://www.smarthygiene.at:
+ Ajax Search Pro >> Analytics Integration
Tracking as pageview
Google Analytics Tracking ID: UA-72781383-3
pageview string: ?ajax_search={asp_term}+ Google Analytics of UA-72781383-3
Site Search-Tracking: On
Search parameter: ajax_searchBut I can’t see search terms in report.
Best regards,
Wolfgang Resnicek
n e t s e r v i c e [*]March 14, 2022 at 4:16 pm #37164Hi,
Make sure you are not using an ad/asset blocker, that may prevent the analytics code from executing.
Try opening up the realtime pageview window on the analytics dashboard. Make sure the initial pageview is present when you open the page – to make sure analytics is tracking. Then try a few search phrases in the live search, they should show up in the recent pages list.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 15, 2022 at 8:55 am #37169Hi there,
I’m still using Google Analytics on this page in following way:
+ Google Tag Manager
+ Borlabs Cookie
if you agree als Scripts/Codes are loadedSo in this way Google Analytics is working – and I’ve added default WordPress search settings (which is s) to Google Analytics Site Search configuration – and this was working too in the past.
In other words:
Tracking of search terms of default WordPress search was working!Best regards,
Wolfgang Resnicek
n e t s e r v i c e [*]March 15, 2022 at 10:09 am #37171Hi,
That should not affect the inner workings of GA whatsoever.
Best,
– Do you see the pageview in the realtime window?
– Does a regular pageview show up in the realtime window?
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 17, 2022 at 3:42 pm #37206Hi,
when doing this I can see increasing active user in ga but I can NOT see a search pageview.
Best regards,
Wolfgang Resnicek
n e t s e r v i c e [*]March 18, 2022 at 2:44 pm #37213That is interesting, I am seeing the code executing the GA tracker send method.
Can you please open your browser developer tools, and in the development console execute the following google analytics commands:
ga('create', 'UA-72781383-3', 'auto'); ga('send', 'pageview', { 'page': '?ajax_search=test', 'title': 'Ajax Search' });
..then immediately afterwards check the realtime window, it should display a pageview tracked like this: https://i.imgur.com/uQuTQut.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 19, 2022 at 10:00 am #37221Hi there,
I can confirm that testing above is working.
If adding code manually then I can see the pageview in GA realtime window.
IMPORTANT: Tacking with events is working!
I’ve change GA integration method to “Event Tracking” – and this is working!!
So there must be a problem when tracking as pageview is used!
Best regards
Wolfgang
n e t s e r v i c e [*]March 21, 2022 at 2:42 pm #37230Thank you WolfGang!
That is very interesting, because the exact same code is executed by the plugin, I have copied this from the plugin source. So if the code gets there and executes, then it should be okay.
Can you please add temporary FTP access and back-end access? I assume the code does not reach that point of execution, I will check why.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 21, 2022 at 5:19 pm #37239You cannot access this content.March 22, 2022 at 3:15 pm #37258Thank you very much!
I debugged the code, but it seems to be triggering, I am getting a response on the console. The code does execute, so I don’t know what exactly is the issue yet.
I tried to check the parameteres, and the same exact code is executed there, as I suggested in my previous post.Can you please maybe try to clear your site cache and try again? If that does not work still, maybe even disabling the cache?
Best,
Try the GA live view window in both cases.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.