add tracking, but only when protocol != 'file:'