JavaScript integration demo
UpdatedThis page provides a few calls that you can use to demonstrate a web integration based on our JavaScript snippet!
Add your API Key (found in your integration’s Settings tab). Then you can tailor and send calls to Customer.io. Requests that you make before you identify someone are anonymous. After you send an identify
call with a userId
, future requests are associated with the identified person. See our JavaScript and API docs for a complete payload reference.
Clear your cookies and local storage to start fresh
Our JavaScript snippet stores data in cookies and falls back to local storage. Clear cookies and local storage items beginning with ajs_
and then refresh the page to start from scratch—with a new anonymousId
and without saved identity information.