Respectlytics Respect lytics
Menu
Replace Firebase Analytics Smaller app binary

Replace Firebase Analytics to shrink your app binary

Migrate from Firebase Analytics to a lighter analytics SDK. Helps developers avoid collecting personal data and ship smaller binaries.

Example Firebase Analytics call (the "before")

swift Respectlytics
import FirebaseAnalytics

// Default Firebase event with rich per-user metadata:
Analytics.logEvent("purchase", parameters: [
    "value": price,
    "currency": "USD",
    "transaction_id": UUID().uuidString,
    "user_id": userId,
])

App-binary size affects download conversion (especially on lower-end devices and cellular networks) and storage pressure for users with full phones. Heavy analytics SDKs (Firebase Analytics, AppsFlyer, Branch) routinely add several MB to the binary; Respectlytics's per-platform SDK is under 100 KB.

Remove Firebase Analytics cleanly

  1. 1

    Remove pod 'Firebase/Analytics' from Podfile (and any Firebase/Core pulled by it that isn't needed elsewhere)

  2. 2

    Remove implementation 'com.google.firebase:firebase-analytics-ktx' from build.gradle.kts

  3. 3

    Remove @react-native-firebase/analytics from package.json

  4. 4

    Remove firebase_analytics: from pubspec.yaml

  5. 5

    Remove FirebaseApp.configure() and Analytics.logEvent call sites — replace with Respectlytics.configure() and Respectlytics.track("event_name")

  6. 6

    Delete the GoogleService-Info.plist and google-services.json if no other Firebase product remains in the app

  7. 7

    Run ./gradlew :app:dependencies and confirm play-services-ads-identifier is no longer in the runtime classpath

Firebase Analytics vs Respectlytics — smaller app binary

Firebase AnalyticsRespectlytics
Typical contribution to IPA size— see tool note above< 100 KB
Typical contribution to APK / AAB size— see tool note above< 100 KB
Transitive dependencies— see tool note aboveNone (zero third-party)

Frequently asked questions

How much do these SDKs typically add to my binary?

Varies by SDK. Rough order of magnitude on Android (release AAB): Firebase Analytics ~3-4 MB (with transitive Google Play Services), AppsFlyer ~1-2 MB, Branch ~1.5 MB, Mixpanel ~1 MB. Our [SDK Bundle-Size Comparator](/tools/sdk-bundle-size-comparator/) has up-to-date numbers per SDK.

Does binary size actually affect downloads?

Yes — particularly past Apple's 200 MB cellular-download cap and on lower-end Android devices with limited storage. Google's Play Console has internal metrics showing measurable install-rate differences when AAB size crosses common thresholds (50 MB, 100 MB).

How does the size reduction work in practice?

Removing a single ~3 MB SDK from your release build shrinks the binary by roughly that amount. Multiplied by user installs, the cellular-data savings compound. iOS App Thinning handles per-device variants; Android AAB delivers size-optimised installs by ABI / density / language.

Does the smaller SDK come at a feature cost?

Respectlytics intentionally doesn't bundle features it considers separate concerns: no ads, no attribution, no in-app messaging, no A/B testing, no crash reporting. Each of those is a dedicated tool's job. The smaller surface is the deliberate design — you add only what you actually use.

Related migration guides

Track what matters. Collect nothing you don't.

Five-field event schema, RAM-only event queue, no IDFA, no AAID, no persistent user IDs. Helps developers avoid collecting personal data in the first place.