Here's how you would proceed to set the visitor's data:
// Feed this call with your own internal segment.
$crisp.push(["set", "session:segments", [["registered_users", "lead"]]])
Of course, you can setup your own segment value.
Published on: 03 / 11 / 2017