Skip to content

Delay events until BrowserClient is initialised #1043

Open
@similicious

Description

@similicious

Summary

The init method of BrowserClient is async. While the initialisation is ongoing, the application can already track events. These events will then not be processed by plugins.

With the dispatchQ in the CoreClient there is already a mechanism to buffer events. However tracked events are only put on the queue while CoreClient is initialising (isReady === false). The queue however is processed when the BrowserClient is done initialising.

Motivations

In our tracking setup we have the issue that events are tracked before the BrowserClient is fully initialised. We rely on a custom plugin to run first to ensure user properties are populated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions