Hi guys,
Bouncing on this related issue, I would like to know if it's possible somehow to insert a JQuery function on the rokajaxsearch form ?
My purpose is to track the search terms in Analytics, using a Hit Callback function to trigger an analytics event. This event will capture and pass on the value field.
This would look like (just to give an example of the tracking):var _this = this;
ga('send', 'event', 'My category', 'My action', {
'hitCallback': function() {
$(_this).parents('form').first().submit();
}
});
return !window.ga;
Unfortunately the search results page (/search.php) doesn't include any search query parameter, so I cannot use this URL (standard implementation in analytics just requires this search query param).
Thanks in advance for any tip