Clear

Clears this browser's identity and starts a new anonymous browsing session

❗️

Deprecated API Warning

This page documents a no-longer supported version of the Boomtrain JavaScript Library (versions 4.x and below). The new p13n.js library, documented here is the currently supported library for integrating with ZetaHub.

When a user has changed from one identity to another, the clear function should be called to start a new browsing history. This should always be called when a user logs out of an identified session.

When called, analyticstrain will stop tracking this user as the previously-identified user, clear all browser cookies previously stored, and start a new anonymous browsing profile for subsequent behavior for this browser.

_bt.clear([callback])

The clear function has one optional field:

Field

Description

callback

Function

A function that is executed after this function completes and the browser is now . Any subsequent calls to the analyticstrain library should always