used mixpanel.track_links and factored out into trail.js