Flutter SDK Reference

Full method and property reference for the emp_analytics Dart package.

EmpAnalytics.init()

Initializes the SDK singleton. Must be awaited before runApp().

ParameterTypeRequiredDescription
apiKeyStringYesYour public API key.
apiHostStringNoOptional custom backend URL.
debugboolNoEnable debug logging. Default: false.
batchIntervalintNoFlush interval in seconds. Default: 30.
maxBatchSizeintNoMax events per batch. Default: 20.

EmpAnalytics.track()

Queues an event to local storage for batch delivery.

ParameterTypeRequiredDescription
eventNameStringYesThe event name.
propertiesMapNoOptional metadata.

EmpAnalytics.identify()

Identifies a user with a unique ID.

ParameterTypeRequiredDescription
userIdStringYesThe permanent user ID.

EmpAnalytics.alias()

Creates an alias for a user, linking their past identity to their new identity.

ParameterTypeRequiredDescription
userIdStringYesThe permanent user ID.

EmpAnalytics.people

Accessor for the People API to update user profiles.

  • .set(Map properties) - Set multiple properties.
  • .increment(String property, num value) - Increment a numeric value.
  • .append(String listName, dynamic value) - Append to an array.

EmpAnalytics.registerSuperProperties()

Registers properties that will be sent with every single track call automatically.

ParameterTypeRequiredDescription
propertiesMapYesProperties to attach.
Last updated on June 4, 2026