Add resource id to user events