Clear success event on hit | Community
Skip to main content
Level 2
May 28, 2023 1:15 PM UTC
Solved

Clear success event on hit

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.
Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
May 28, 2023 10:59 PM UTC

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
Jennifer_DunganAccepted solution
Level 2
May 28, 2023 10:59 PM UTC

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.

Translate