The code below uses Auth and Analytics. Auth successfully generates anonymous accounts, but Analytics dashboard always show 0 for new users.
I referred to the official documentation.
private firebaseConfig = {
// ............
};
private app = initializeApp(this.firebaseConfig);
public analytics = getAnalytics(this.app);
public auth = getAuth(this.app);
public async loginAnonymous() {
await signInAnonymously(this.auth)
.then(() => {
})
.catch((error) => {
console.log(error);
});
}
Some answers on StackOverflow say that it will be reflected in a few days, but I have been waiting for 3 days.
My understanding is that calling getAnalytics() counts as one user, is this correct? The dashboard doesn’t work no matter how long…