How to configure custom dimension and set the value for a custom event?