is there a way to programmatically clear Visitor Profile data? | Community
Skip to main content
Level 3
April 17, 2023
Solved

is there a way to programmatically clear Visitor Profile data?

  • April 17, 2023
  • 1 reply
  • 893 views

Is there a way to programmatically clear data tied to a Visitor Profile?  I'm using it for Customer Attributes but I don't want the segmentation to persist offline, only during session when user is authenticated.

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 parthhetamsaria

You can use the mbox.js library and the mboxReset() method to clear the data. This method will remove all the cookies and reset the mbox session, effectively clearing all data associated with the visitor profile.

 

Code:

<script src="https://YOURCOMPANY.tt.omtrdc.net/m2/YOURCOMPANY/mbox.js"></script>

mboxReset();

 

You can add this code to any page where you want to clear the data associated with a visitor profile

1 reply

parthhetamsaria
Adobe Employee
parthhetamsariaAdobe EmployeeAccepted solution
Adobe Employee
April 24, 2023

You can use the mbox.js library and the mboxReset() method to clear the data. This method will remove all the cookies and reset the mbox session, effectively clearing all data associated with the visitor profile.

 

Code:

<script src="https://YOURCOMPANY.tt.omtrdc.net/m2/YOURCOMPANY/mbox.js"></script>

mboxReset();

 

You can add this code to any page where you want to clear the data associated with a visitor profile