Integrate Firebase Analytics (PP-5196) - #206
Draft
PoorBillyPilgrim wants to merge 2 commits into
Draft
PoorBillyPilgrim wants to merge 2 commits into
PoorBillyPilgrim wants to merge 2 commits into
Conversation
Coverage Report for CI Build 36671977937Coverage increased (+0.4%) to 27.371%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the Firebase Analytics SDK for capturing usage data.
firebase.ts,useFirebaseAnalytics) provide asynchronous, non-blocking utilities for loading the Firebase Analytics SDK and logging custom events.firebase.init()kicks off loading the SDK asynchronously and queues events so that the app never has to wait for the SDK to load. A sharedfirebaseAnalyticsPromise stores the SDK at module-level and makes it available to all the methods withinfirebase.ts.firebase.tskeeps track of the most recently visited library and addslibrary.idandlibrary.slugas default event parameters and user properties on every logged event.useFirebaseAnalyticsupdates the SDK with the latest library whenever library data changes. Note: Pages that are unspecific to a library, like the multi-library home page, still log events even when no specific library data is available.userFirebaseAnalyticswhenever users navigate through the app. Any potential user credentials found on login-related URLs are stripped before any page views are logged. Locale is also added as a custom parameter.PALACE_CPW_FEATURE_FIREBASE_ANALYTICS=truealong with a validFIREBASE_CONFIGJSON string to track usage stats using Firebase Analytics. It is off by default. While off, no attempts are made to load the Firebase Analytics SDK. Both flags are documented in the README for the repository.Notes
Motivation and Context
The mobile apps currently capture usage data using Firebase Analytics. The web catalog will now be populating the Firebase console with its own data, allowing stakeholders to compare usage data easily.
Jira PP-5196
How Has This Been Tested?
Checklist: