add google analytics tracking for external links

replace ?ref with google analytics tracking