: 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
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.
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.