Superwall

setIntegrationAttribute()

Sets a single attribute for third-party integrations.

Purpose

Syncs a user identifier from an analytics or attribution provider with Superwall. This enables better user tracking and attribution across platforms.

Signature

Future<void> setIntegrationAttribute(
  IntegrationAttribute attribute,
  String? value,
)

Parameters

NameTypeDescription
attributeIntegrationAttributeThe integration attribute key specifying the integration provider.
valueString?The value to associate with the attribute. Pass null to remove the attribute.

Returns / State

Returns a Future<void> that completes when the attribute is set.

Usage

Setting an integration attribute:

await Superwall.shared.setIntegrationAttribute(
  IntegrationAttribute.mixpanelDistinctId,
  'user_123',
);

Removing an integration attribute:

await Superwall.shared.setIntegrationAttribute(
  IntegrationAttribute.mixpanelDistinctId,
  null,
);

Syncing with multiple providers:

// Mixpanel
await Superwall.shared.setIntegrationAttribute(
  IntegrationAttribute.mixpanelDistinctId,
  mixpanelUserId,
);

// Amplitude
await Superwall.shared.setIntegrationAttribute(
  IntegrationAttribute.amplitudeUserId,
  amplitudeUserId,
);

// Adjust
await Superwall.shared.setIntegrationAttribute(
  IntegrationAttribute.adjustId,
  adjustId,
);

How is this guide?

Edit on GitHub