Skip to content

Lib not tracking context.app #1237

@facundoj-serrano-clip

Description

@facundoj-serrano-clip

As documentation say, lib does not automatically collect context.app.version and we should send it manually

The problem is, when i manually try to send context.app object, it doesn't arrive to segment event

Image

Im using code:

  trackEvent(event: metricsLib.MetricsEvent) {
    const obj = {
      event: `Eventname`,
      type: `track` as const,
      context: {
        app: {
          name: `appname`,
          version: `545`,
          build: `3.0.1.545`,
          namespace: `com.dev.appname`,
        },
      },
      properties: event.properties,
    };
    this.analytics.track(obj);
  }

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