Mobile app version of vmapp.org
Login or Join
Pierce454

: How to track a site-search with lots of options? Our website has two search forms. One of them includes no text input, but a lot of checkboxes, dropdown boxes and radio buttons for narrowing

@Pierce454

Posted in: #GoogleAnalytics #SiteSearch #Statistics

Our website has two search forms. One of them includes no text input, but a lot of checkboxes, dropdown boxes and radio buttons for narrowing down our product catalogue.

Is there a good way to track how clients use that search function, similar to Google Analytics Site Search? I don't have any specific goals in mind, but would like to know how it is used.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray155

I would suggest creating a track event call with GA:

<script type="text/javascript">
function gaTrackEvent(category, action, label)
{
_gat._getTrackerByName()._trackEvent(category, action, label);
}
</script>


Then with each click of the check box send the track event:

<input type="checkbox" value="1" onclick="gaTrackEvent('search', '<some_filter_action>', '<keyword_used_or_some_other_information_related_to_the_filter>')"> <Some filter item>


Each time a user clicks the checkbox it will fire an event to GA that you can then analyze within the events section.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme