firebase / firebase/firebase-js-sdk
Firebase Analytics (Web) does not work in Non-browser Envs
Open
api: analytics
feature request
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
* Operating System version: macOS Mojave
* Browser version: Electron 5.0.10
* Firebase SDK version: 7.1.0
* Firebase Product: Analytics
Describe the problem
#### Steps to reproduce:
On Electron, Analytics seems to load correctly but no events, sessions or users are logged.
#### Relevant Code:
Include Firebase using the `script` tag (as importing the module from NPM fails due to gRPC).
```html
firebase.initializeApp({
...
});
firebase.analytics()
```
While Firebase seems to load, and a new `googletagmanager` gets installed on the page, not analytics events seem to reach Firebase dashboard.
Contributor guide
Assessment
This issue has not been assessed yet.