Skip to content

SuperProperties are not registered during init before the automatic events are tracked. #658

Open
@gulcebasar

Description

@gulcebasar

I am trying to use

open class func initialize(
   token apiToken: String,
   trackAutomaticEvents: Bool,
   flushInterval: Double = 60,
   instanceName: String? = nil,
   optOutTrackingByDefault: Bool = false,
   useUniqueDistinctId: Bool = false,
   superProperties: Properties? = nil,
   serverURL: String? = nil
) -> MixpanelInstance

to register super properties before tracking of the automatic events

but since registerSuperProperties is async automaticEvents.initializeEvents(instanceName: self.name) is run before super properties are set.

Is it possible to fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions