move all click handling back to one function and restore original logic to open a new window for offsite links (except for downloads)
use different helper methods for ga category for search results vs item detail
ga-category depends on source and use helpers
refactor and add tests