Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
I am seeing following error while trying to add firebase analytics

I have linked firebase analytics to the firebase project recently but I am getting the following error in my console and nothing is visible in the firebase analytics Dashboard even.

[2022-04-11T06:07:13.736Z]  @firebase/analytics: The measurement ID in the local 
Firebase config (G-XXXXXXXXX) does not match the measurement ID fetched from the 
server (undefined). To ensure analytics events are always sent to the correct Analytics 
property, update the measurement ID field in the local config or remove it from the 
local config.

This is how I am adding analytics

const firebaseConfig = {
    apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    authDomain: "*****************",
    projectId: "********",
    storageBucket: "*********",
    messagingSenderId: "********",
    appId: "*******************************",
    measurementId: "G-XXXXXXXXX"
  };

const app = firebase.initializeApp(firebaseConfig)
const auth = getAuth(app)
const db = getFirestore(app)
firebase.analytics()
const analytics = getAnalytics(app);
console.log(analytics)

Can anyone help what exactly I am missing? Any help is appreciated.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If anyone sees this error, then in my case issue was I have implemented firebase analytics after creating the project not while creating. SO it took 24 hours to reflect. And after 24 hours everything was working.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!