Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Web SDK Adobe Data Collection - how to clear success event

Avatar

Level 3

I created two Rules in Data Collection. One first one fires when a video starts playing (Video Start). This is event 50. The second one fires when the video finishes playing (Video Finished). This is event 54.

When testing, I noticed in the interact call for Video Finished/event 54, both event 50 and event 54 have a value of 1.

 

m_alcantara_0-1758824364917.png

 

In the Video Finished rule, in the Web SDK Update Variable action, I only put a "1" on event 54. I left event 50 blank. I did not check the Clear existing value checkbox although I did try checking it and it didn't make a difference.

 

m_alcantara_1-1758824533319.png

 

I'm concerned about the data/reporting for this event. Why does event 50 have a value (1) even though I didn't enter this value in the update variable action, and how can I remove it?

5 Replies

Avatar

Community Advisor

Hi @m_alcantara 

what types of data element are you using? A Web SDK variable or XDM object?

Cheers from Switzerland!


Avatar

Community Advisor and Adobe Champion

I've seen other people have this issue on AppMeasurement implementations before... I think it definitely is a result of the objects not being cleared between uses... I agree that the "clear existing value" should fix the issue.. I am not on WebSDK, so I don't have a scenario to test with (also, in my implementation, I manually set my events with code, I don't use the Set Variables interface so I have full control over what events are being sent - and not worry about values carried forward)

 

I am curious, after adding the clear existing values, how long did you wait / how many times did you try the code? I've noticed that sometimes there is a slight latency in builds... sometimes I have to try things again a few minutes later for the changes to take effect. So it  might be that... 

 

Also, I don't know if it will work, but crazy thought... can you pass 0 to the event that is incorrectly being included on the tracking call? To force it to not count?

Avatar

Level 3

Hi @m_alcantara,

For Adobe Analytics, we used to clear variables after the beacon was sent. Similarly, you need to follow the same. 

I hope you are using XDM Variable not the XDM object, if you are using XDM Object you won't be able to update the variable values within Rules.

For example, you created a rule for video starts. In the same rule you would typically create an update variable and send event actions. After these two actions, you need to add one action using update variable action and configure it as shown 

Elanchezhiyan_E_0-1758874286487.png

 

Add another action > Click on the xdm > enable the Clear Existing value.

Once you complete this, you will not see the event50 in the Video finished Event.

I hope it will help, let me know if you need further assistance on this.

 

Good Luck.

Avatar

Level 3

I think the above attached screenshot is not clear, refer to the below screenshot for clear one

Rule - Clear Variable using Web SDKpng.png

Avatar

Community Advisor

What I typically do is have a rule that listens to any type of data layer push and in there you reset your XDM element. Just make sure the order is set to 1.

 

As simple as that.

Cheers from Switzerland!