adding referrer to logging fields