DiegoPino / islandora_piwik

Piwik integration module for Islandora
GNU General Public License v3.0
5 stars 3 forks source link

Track search query words #3

Closed mjordan closed 9 years ago

mjordan commented 9 years ago

Islandora offers a hook for intercepting/altering Solr queries:

/**
 * Implements hook_islandora_solr_query().
 */
function islandora_piwik_solr_query($islandora_solr_query) 
  // Terms that user entered are in $islandora_solr_query->solrQuery.
}

See http://developer.piwik.org/api-reference/tracking-api and http://piwik.org/docs/site-search/ for Piwik API details.

mjordan commented 9 years ago

Trying to figure out if https://github.com/piwik/piwik/issues/8287 is relevant to the problem we encountered in the Islandora Con Hackfest. Posting the link here for future reference.