Can you manually set Analytics events/eVars in SDK event Callback
I was trying to see if it was possible to update the XDM object using the SDK On before event send callback.
I attempted to write the XDM Object with the following code.
Essentially, trying to create some conditional logic to populate eVars in specific instances.
On before event send callback
if(digitalData.event.linkClick.href){
content.xdm._experience.analytics.customDimensions.eVars.eVar16 = digitalData.event.linkClick.href;
}
Testing in the Network call, i see the customerDimensions.eVars.eVar16 populated, but in the Console, I see an error saying the .analytics objects can't be accessed.

It's likely I am missing something, but wanted to see if I was doing anything that was against what is possible/recomneded.

