firebase / firebase/firebase-js-sdk

Firebase Analytics (Web) does not work in Non-browser Envs

Open
#2,243 24 comments 12 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

* 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

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.