User Identity and Consent Copy page Copy link View Markdown Identity helps connect interactions that belong to the same browser, app, or account. Consent determines which of those interactions you can measure and which identity or history you can use. They are separate decisions: a visitor can be signed in without allowing identified tracking. Device and account identity device_id identifies a browser or app instance. It can be short-lived or persistent, depending on how the integration handles consent and identity. user_id identifies a signed-in account. When appropriate, the same account identifier can connect permitted activity from different devices. Use opaque identifiers rather than names or email addresses. Never use a shared account ID for anonymous visitors. A device ID is not a substitute for an account ID. The identity lifecycle Before sign-in: An integration can recognize a browser or app instance without knowing who is using it. Whether that identity can persist or be used for tracking depends on consent. On sign-in: The application knows the account identity. Include it only when consent permits; the presence of a device ID does not imply consent to use account history. On sign-out or account switch: Stop associating new activity with the previous account. A return to the same browser does not prove that the same person is using it. Consent and privacy Treat the visitor’s consent choice as a separate input from their sign-in state or experiment group. Use your consent system to decide what is allowed, and apply changes when the visitor grants or withdraws permission. Do not send tracking events when the visitor has not permitted tracking. The ability to request recommendations does not depend on sending tracking events. When tracking is not permitted Recommendation integrations can still request content without collecting tracking events. Do not send account identity or behavioral history when the visitor has not permitted their use. Check the rules for identifiers and request fields in your implementation guide: Frontend SDK identity and consent Manual recommendation integration Manual event integration Data deletion Consent withdrawal governs future collection. Deletion of existing platform data is a separate operation. See Users API for deletion requests. Related topics Event model and tracking contract Recommendation request model A/B testing and benchmarking