Skip to content

docs(analytics): explain the three SPM products#16249

Open
tsushanth wants to merge 1 commit into
firebase:mainfrom
tsushanth:docs/issue-15807-analytics-product-choice
Open

docs(analytics): explain the three SPM products#16249
tsushanth wants to merge 1 commit into
firebase:mainfrom
tsushanth:docs/issue-15807-analytics-product-choice

Conversation

@tsushanth

Copy link
Copy Markdown

Why

Closes #15807.

The Firebase iOS SDK ships three Swift Package products under the Analytics umbrella — `FirebaseAnalytics`, `FirebaseAnalyticsCore`, and `FirebaseAnalyticsIdentitySupport` — and the difference between them is only discoverable by reading `Package.swift` and tracing each `Wrapper` target back to the underlying `GoogleAppMeasurement` product it pulls in. The issue reporter and the integration docs at firebase.google.com/docs/analytics/get-started both say "choose the analytics library" without explaining how to choose.

What

Adds a "Choosing the Right Analytics Product" section to `FirebaseAnalytics/README.md` with a table mapping each product to:

  • the underlying `GoogleAppMeasurement*` library it depends on
  • its IDFA / advertising-data posture
  • the app profile it's intended for

Plus a rule-of-thumb ("start with `FirebaseAnalytics` unless your privacy posture rules out advertising features") so a developer doesn't need to read `Package.swift` to make the call.

The pre-existing "manual screen view logging API" content is preserved unchanged below the new section.

Scope

Docs only. No code, no API surface changes.

Closes firebase#15807.

The Analytics integration ships three Swift Package products
(FirebaseAnalytics, FirebaseAnalyticsCore, FirebaseAnalyticsIdentitySupport)
and the difference between them is only visible by reading Package.swift
and the underlying GoogleAppMeasurement dependencies. Adds a section to
FirebaseAnalytics/README.md mapping each product to its measurement
library, IDFA posture, and the use case that should drive the choice.
@tsushanth tsushanth requested a review from a team as a code owner June 9, 2026 19:14
@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@google-cla

google-cla Bot commented Jun 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@paulb777

paulb777 commented Jun 9, 2026

Copy link
Copy Markdown
Member

Hi @tsushanth Thanks for the PR. Please fill out the CLA and we'll take a look

@tsushanth

Copy link
Copy Markdown
Author

@googlebot I signed it!

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.

[FR]: Make very clear documentation around which is the correct package product to add for Firebase Analytics integrations

2 participants