• Resolved strandhuette

    (@strandhuette)


    Hi everyone, we are currently trying to get the Google Analytics integration for Ajax Search Lite to work, but we were not successful so far. We tried both Pageview and Event Tracking.

    Is there any way to troubleshoot the connection between the plugin and Analytics? Might it be a problem that Analytics is integrated via Tag Manager container and not directly in the code?

    I am a little unsure how to proceed – we tried both implementations according to the documentation but could not get any data into Analytics. Any suggestions on how to go on?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    I’m sorry or the late response.

    The ga/gtag functions have to be accessible for the plugin to be able to send the information. I think integrating via the tag manager does no include the neccessary ga/gtag.js files, therefore it is not going to work.

    Best,
    Ernest M.

    Thread Starter strandhuette

    (@strandhuette)

    Hi Ernest,

    thank you very much! Yes, with the integration via Tag Manager the Analytics code is included in gtm.js, so this should be the issue here. We know what to do now, thanks again, and have a nice day!

    Hi @strandhuette – could you share your solution?

    Thread Starter strandhuette

    (@strandhuette)

    Hi @petskratt, in the end we did not need a solution because the requirements in the project changed. But the solution described above which should work according to wpdreams was to implement Google Analytics without Tag Manager so that Ajax Search Lite has access to the ga/gtag functions as needed. We did not test that though, because of the changes in the project.

    Another workaround considered was that you can filter for searches via Ajax Search Lite in Analytics since each search generates a distinctive URL including the string “?s=”. With this knowledge you can go to Behaviour/Website Content/All Pages in Analytics and inpu ?s= in the search box to see the searches.

    Hope this helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Analytics integration’ is closed to new replies.