Skip Navigation

[Resolved] Is there a way to track views search filter queries for statistics/analysis?

This support ticket is created 7 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.


This topic contains 2 replies, has 2 voices.

Last updated by Kristin 7 years, 4 months ago.

Assigned support staff: Caridad.


Hi there,

Is there any way to track queries that are produced using Views' search/filter functionality. Say I have a view with 3 filters: Size, Shape, Color.

I need a way to record what combinations and frequencies users are searching on the front-end using each of those filters. Any specific methods/hooks/filters you know of that I can use?



You should be able to use Google Analytics "Event tracking".
hidden link

You can call the _trackEvent function with Javascript to send the values searched for.

Please let me know if you are satisfied with my reply and any other questions you may have.



Right, I'm well aware of Google Event Tracking, however we need a native WP solution.

I'm imagining we could just hook into the


filter and checking for any custom tax/meta queries, right? Is there a better way to access the parametric filter criteria more directly?