Skip to content

Integration field is empty #180

Closed
Closed

Description

@dtlucho

I've been testing this package and I'm correctly instantiating analytics, as well as adding the AppsFlyer plugin. However, when the event is sent to Segment, the integration section appears as empty.

For example:

AnalyticsSegment().analytics.addPlugin(
  AppsFlyerDestination(),
  settings: {
    'appleAppID': value,
    'appsFlyerDevKey': myKey,
    'httpFallback': false,
    'trackAttributionData': true,
    'type': 'mobile',
    'versionSettings': { 'foo': [] },
  },
);

Now, if I do:

AnalyticsSegment().analytics.track('event', properties: myProperties)

In Segment, I see that the value of the integrations map is empty, even though I added AppsFlyer:

"integrations": {}

Packages:
segment_analytics_plugin_appsflyer: ^1.0.2
segment_analytics: ^1.1.9

This seems to be related to issue #152

Activity

  1. MichaelGHSeg commented on Sep 16, 2025

    @MichaelGHSeg
    Contributor

    The integrations field isn't expected to be filled out by the core SDK. The SDK looks for names of destinations with false values and skips those destinations for those events. The segment server also behaves similarly.

    This may be useful if you want to exercise specific control over your events using a custom plugin, i.e. turn on or off, say, mixpanel for events with specific data in them like PII, etc.

    I think there are some destination plugins in some of our older SDKs that use it, but I don't think any of those currently exist in flutter.

    I'm looking at updating our documentation to clarify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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