Hi there,
i am trying to keep track of all searches, below is the code, both the object and the search Phrase are available, i just don’t see any results in the backend of Piwik, could anyone tell me what i’m doing wrong?
Thanks in advance!
jQuery(function($){
$(".asp_main_container").on("asp_search_end", function(event, id, instance, phrase) {
// Make the Piwik object available
var tracker = Piwik.getTracker("//statistiek.xxxx.nl/piwik/piwik.php", xxxx);
console.log(tracker);
console.log(phrase);
// Track the Search phrase
tracker.trackEvent('General_Actions', 'Live Search', 'Phrase', phrase);
});
});