Query parameter for Google Analytics to track my Ajax Searches inside my Website

Viewed 150

I want to track my searches on my website, so I have set up tracking in google analytics.

It started to track queries perfectly as I set up “s” as a query parameter.

However, tracking is happening to people who have clicked on the search button which takes you to the search result page.

Example: https://keralagardens.buzz/?s=rose&post_type=product&product_cat=0

But for me, I want to track ajax search also, so could you please tell me the query parameter for Google analytics tracking?

Ajax request format https://keralagardens.buzz/wp-admin/admin-ajax.php?action=woodmart_ajax_search&number=20&post_type=product&product_cat=0&query=rosee

Thanks

1 Answers
Related