Identify callback

Once your users have been successfully identified, it can sometimes makes sense to perform a followup action. Identify accepts a callback argument which allows you to call a function when identify has completed.

The callback will called regardless of if identification was successful or it failed, and does not pass any arguments.

To find your appID, log in above. You'll see your appID pre‑filled in the code snippet.

function myCallback() {
  console.log('The user was identified');

Canny('identify', {
  appID: 'YOUR_APP_ID',
  user: {
    avatarURL: viewer.avatarURL, // optional
    created: new Date(viewer.created).toISOString(), // optional
}, myCallback);