If you are using Crisp on a website where users are authenticated, you may want to set their data.

This method uses the Crisp JavaScript API, that you can call from your own code.

Keys should be lowercase. Special chars are not allowed except underscores

Update one key/value

// Feed this call with your own custom data.
$crisp.push(["set", "session:data", ["order_id", "3535353214"]]);


Of course, you need to replace order_id and 3535353214 with your own key/values!

Update multiple key/values

// Feed this call with your own custom data.
$crisp.push(["set", "session:data", [[["order_id", "3535353214"],["address", "1 Market Street"]]]]);


Want to know more about the $crisp interface? Read: How to use $crisp Javascript SDK?
Was this article helpful?
Thank you!