Clear success event on hit | Community
Skip to main content
Level 2
May 28, 2023
Solved

Clear success event on hit

  • May 28, 2023
  • 1 reply
  • 725 views

I need help using Success Events in Adobe Analysis Workspace.

I have configured the events to be captured in certain scenarios like Service Failure, Session Timeout, etc.
I want the events to be cleared immediately after the call - something like a hit level validity.

But currently the event details are still retained and continue being captured through the visit.

How can I clear the events immediately after the hit?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

Is your site an SPA... so it's possible that the s.events object isn't being cleared...

 

You could try the "clearvars" directive (this should clear everything, and maybe in your implementation, that will impact other things)...

 

Or you can use a manual solution though a custom code block right after sending the beacon, using:

 

s.events = "";

 

This will just clear your events and nothing else.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 28, 2023

Is your site an SPA... so it's possible that the s.events object isn't being cleared...

 

You could try the "clearvars" directive (this should clear everything, and maybe in your implementation, that will impact other things)...

 

Or you can use a manual solution though a custom code block right after sending the beacon, using:

 

s.events = "";

 

This will just clear your events and nothing else.