VID-1912 Added tracking

I would probably put this in a separate view file for media items but this is fine for now.