Vid 2066 Impression tracking

Adding impression tracking for media galleries and fixing the tracking that was in place.