compute the family string when the user event happens, for webapp record_replay