How to update Event in analytics template in XDM custom code section for Update Variable?
I'm trying to figure out how to update an analytics event, when using the analytics template, within the update variable action.

I tired something like this:
content._experience = content._experience || {};
content._experience.analytics.event1to100 = content._experience.analytics.event1to100 || {};
content._experience.analytics.event1to100.event2.value = 1;
But I get an error: Failed to execute "Update variable" for "MY_Test" rule. Cannot set properties of undefined (setting 'value') TypeError: Cannot set properties of undefined (setting 'value')
Not sure what I'm missing here? I'm able to update props.
content._experience = content._experience || {};
content._experience.analytics.customDimensions.props = content._experience.analytics.customDimensions.props || {};
content._experience.analytics.customDimensions.props.prop1 = "Updated Prop1 Value";
content._experience.analytics.customDimensions.props.prop3 = "Updated Prop3 Value";
Thanks!
