Skip to main content
Tell Bigdelta who is behind the activity by calling identify. This links events to specific users and accounts. What you need to provide:
  • User ID (unique user identifier in your system)
  • Account ID (unique account identifier in your system)
const client = new Bigdelta({ trackingKey: '<TRACKING_KEY>' });

// Identify the user and their account
client.identify({ users: '<USER_ID>', accounts: '<ACCOUNT_ID>' });

// Set properties on user and account records
client.setRecordProperties([
  {
    id: client.getIdentifier('users'),
    slug: 'users',
    properties: {
      set_once: {
        email_address: 'user@email.com',
      },
    },
  },
  {
    id: client.getIdentifier('accounts'),
    slug: 'accounts',
    properties: {
      set_once: {
        email_address: 'account@email.com',
      },
    },
  },
]);
Setting the email_address property on account records is important — Bigdelta uses it to merge accounts created from your product data with accounts imported from your payment processor.
What you unlock:
  • Events are attributed to specific users and accounts
  • User records — appear in your workspace linked to their accounts