firebase / firebase/firebase-js-sdk

FR: Analytics - Add support for logging app_info automatically

Open
#3,032 1 comment 2 reactions 0 assignees View on GitHub
api: analytics feature request
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: N/A (macOS 10.14.6 if you're really interested)
* Browser version: Any (Safari 13.x, Chrome 80.x, Firefox, etc.)
* Firebase SDK version: 7.14.2
* Firebase Product: analytics

### [REQUIRED] Describe the problem
It's very critical for many business processes to be able to determine what app version certain events occurred with.

Currently, when events are logged from a Web platform to a new Analytics App+Web property, the app_info is entirely empty:
![image](https://user-images.githubusercontent.com/53709539/81253365-68ba7b80-8ff6-11ea-9668-81450f86d173.png)

For other platforms (iOS/Android), that information is populated automatically with each event:
![image](https://user-images.githubusercontent.com/53709539/81253668-12017180-8ff7-11ea-8b63-6670e3466e53.png)

A suggestion would be to attempt to use the app version in a package.json file automatically (if it exists). Or, more universally useful, provide an API to allow the user of the SDK to set the app version at the beginning of the page's lifecycle (e.g., when first initializing firebase)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.