Expand my Community achievements bar.

SOLVED

is there a way to programmatically clear Visitor Profile data?

Avatar

Level 4

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

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