Hello,
We have an AEM video component that updates a data layer whenever an event occurs such as Playback started, percentage reached, etc. Using the function below, I can see the data layer is in fact being updated by testing for the values existence after the events have occurred. Is there a reason why the Data Element Change isn’t activating? Also, since I don’t have access to the AEM source code, does that mean a Direct Call isn’t an option?
Thanks
function updateDataLayer (actionName, percentComplete) {
if (dl != undefined) {
Object.assign(dl.event, {
action: actionName,
percentViewed: percentComplete
});
} else {
console.error('"' + dataLayerName + '" Data Layer Object Not Found');
}
}