Account Data

Account data captures information about a customer’s business, organizational affiliation, or group rather than the individual user. Account data matters when a single account (for example, a company, household, or organization) has multiple users associated with it. By attaching an accountId, you group interactions and behaviors across all related users for holistic account-level analysis.

The account object includes this field.

FieldTypeDescription
account.idstringRequired. The unique identifier for the account.

This JSON structure illustrates a typical account payload with its unique identifier.

Send account data with an interaction to correctly attribute all interactions to the account.

This example includes account data alongside a specific user interaction with a product, so both the individual user’s behavior and their organizational context are captured.

To inject the account.id into all interaction events across your site consistently, use the Sitemap’s onActionEvent global handler.

This example assumes the accountId is already available on the page, such as being stored in a global JavaScript variable like window.accountId.

See Also