Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Data Element Change Event Not Working

Avatar

Avatar
Validate 10
Level 2
MktgCloudUser
Level 2

Likes

14 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 10
Level 2
MktgCloudUser
Level 2

Likes

14 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 5
View profile
MktgCloudUser
Level 2

14-03-2019

Hello,

We have an 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 value's 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'); 

  }

}  

Accepted Solutions (0)

Answers (0)