No search terms are displayed in GA

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 Ernest Marcinko 2 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #37159
    netservice
    netservice
    Participant

    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_search

    But I can’t see search terms in report.

    Best regards,

    Wolfgang Resnicek
    n e t s e r v i c e [*]

    #37164
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #37169
    netservice
    netservice
    Participant

    Hi 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 loaded

    So 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 [*]

    #37171
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    That should not affect the inner workings of GA whatsoever.
    – Do you see the pageview in the realtime window?
    – Does a regular pageview show up in the realtime window?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #37206
    netservice
    netservice
    Participant

    Hi,

    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 [*]

    #37213
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    That 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 :)


    #37221
    netservice
    netservice
    Participant

    Hi 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 [*]

    #37230
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank 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 :)


    #37239
    netservice
    netservice
    Participant
    You cannot access this content.
    #37258
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank 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?
    Try the GA live view window in both cases.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.