Skip to content

2.7.19#423

Merged
ianrumac merged 2 commits into
mainfrom
develop
Jul 1, 2026
Merged

2.7.19#423
ianrumac merged 2 commits into
mainfrom
develop

Conversation

@ianrumac

@ianrumac ianrumac commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

2.7.19

Enhancements

  • Added EventTrackingBehavior enum and SuperwallOptions.eventTrackingBehavior property for GDPR-compliant event collection control. Use ALL (default) to track everything, SUPERWALL_ONLY to suppress user-initiated tracking, trigger fires, and user-attribute updates while keeping internal SDK events, or NONE to stop all event collection entirely. The behavior can also be changed at runtime via Superwall.instance.eventTrackingBehavior.
  • Deprecated SuperwallOptions.isExternalDataCollectionEnabled. Setting it to false now maps to SUPERWALL_ONLY; setting it back to true maps to ALL.

yusuftor and others added 2 commits July 1, 2026 14:56
Introduces an `EventTrackingBehavior` enum (`ALL`, `SUPERWALL_ONLY`,
`NONE`) and a `SuperwallOptions.eventTrackingBehavior` property, plus a
runtime `Superwall.instance.eventTrackingBehavior` setter. Deprecates
`isExternalDataCollectionEnabled`, mapping `false` to `SUPERWALL_ONLY`
(preserving `NONE`) and `true` to `ALL`.

- EventsQueue caches the behavior, clears its buffer when opting out, and
  discards events on flush when set to `NONE`.
- The runtime setter updates the queue, forwards the behavior to the
  paywall web view, and skips the config-attributes event when opting
  out to `NONE`.
- The web paywall is informed of the behavior on webview load via an
  `event_tracking_behavior` message.
- The config payload emits both `event_tracking_behavior` and the legacy
  `is_external_data_collection_enabled` boolean.

Mirrors the iOS SDK change (Superwall-iOS #479). Android has no MMP
install-attribution, so that part of the iOS change is out of scope.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ianrumac ianrumac merged commit 0d2b49a into main Jul 1, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants