profileId property

String? profileId
final

Initial profile binding used when the SDK has no persisted one.

All Openpanel.track events — including the automatic cold-start app_opened — carry this profileId from the very first launch, so no event ever lands on an anonymous device profile. Ignored when a profile was already bound earlier (via Openpanel.identify, which persists its binding): an explicit identify always wins over this default.

Use this for a stable installation-level identity: the profile can then be enriched with attributes (e.g. a user id as a property) through repeated identify(profileId, properties: …) calls without ever switching the identity itself.

Implementation

final String? profileId;