How to clear events setup via custom code in WebSDK AEP configration. | Adobe Higher Education
Skip to main content
April 23, 2025
解決済み

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

  • April 23, 2025
  • 2 の返信
  • 626 ビュー

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.

このトピックへの返信は締め切られました。
ベストアンサー Harveer_SinghGi1

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!

2 の返信

Harveer_SinghGi1
Community Advisor
Community Advisor
April 23, 2025

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!

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 24, 2025

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!