Expand my Community achievements bar.

SOLVED

How to clear events setup via custom code in WebSDK AEP configration.

Avatar

Level 1

Hi @bjoern__koth ,
I have setup events via custom code in webSDK on pageload & button click calls but these events are persisting on the next pages.
Is there any way to use s.clearVars(); in WebSDK? or is there any alternate approch.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SumitLahabar ,

You can use update variable action from the WebSDK extension to clear the complete XDM using the "clear existing value" option on the XDM level.

This is explained in detail in this video from Jim - https://www.youtube.com/watch?v=ThpW4yFW2f0

Cheers!

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @SumitLahabar ,

You can use update variable action from the WebSDK extension to clear the complete XDM using the "clear existing value" option on the XDM level.

This is explained in detail in this video from Jim - https://www.youtube.com/watch?v=ThpW4yFW2f0

Cheers!

Avatar

Community Advisor

Hi @SumitLahabar 

see @Harveer_SinghGi1's response. If you are using a Web SDK variable, you can the checkbox to initially reset it when it is executed.

Cheers from Switzerland!