Skip to content

Registered super properties are discarded if not opted in to tracking causing issues when later opting in #951

Description

@alixwar

Hi, "Application ID" (a "Super property") is not consistently added to events.

My code for setting the super property:

final var instance = MixpanelAPI.getInstance(applicationContext,
                BuildConfig.ANALYTICS_TOKEN, optOutTracking, true);
        final Map<String, String> properties = new HashMap<>();
        properties.put("Application ID", applicationContext.getPackageName());
        properties.put("[HIDDEN]", BuildConfig.VERSION_NAME);
        instance.registerSuperProperties(new JSONObject(properties));

The following two events are of identical type and from the same app/version.

Example event when it is there:

Image

Example event when it is missing:

Image

Mixpanel version: 8.5.0

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