Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Analytics integration for subsites using GA Filters › Reply To: Analytics integration for subsites using GA Filters
Hi!
Thank you for all the details, I think the problem might be either incorrectly set query string there or something a bit different (details below). On the google analytics page, where you set the query parameter, that should be the same as the one on the plugin back-end: https://i.imgur.com/iMMusJj.png
On the plugin back-end it should be:
[code]?s={asp_term}[/code]
I have checked if the function sends the pageview string, but it is sent. A possible issue might be, that the ‘_gaTracker’ google analytics function might not add the subsite directory through. Within the plugin the URL sent in a relative format such as ‘/’ + query parameter. I am guessing, that the ‘/’ migth only represent the root directory in all cases, which would explain the problem.
So, I logged in via FTP, and made a change to include the document path within the pageview, so now the plugin will always send the pageview string relative to the current site home page. If this change works, I will include it in the upcoming release.
There is also this notice on the console here: https://i.imgur.com/dvkLCyQ.png
When testing, make sure to disable that feature, or use an incognito window to test, as otherwise the tracking might be disabled overall.
Make sure that the query string is set to s on the google analytics dashboard, and then hopefully you should start seeing the queries within the subdomain paths.