Added user_role to analytics events.