我在尝试添加 firebase 分析时看到以下错误

I am seeing following error while trying to add firebase analytics

我最近已将 firebase 分析链接到 firebase 项目,但我在控制台中收到以下错误,甚至在 firebase 分析仪表板中也看不到任何内容。

[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.

这就是我添加分析的方式

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)

任何人都可以帮助我到底缺少什么吗?感谢任何帮助。

如果有人看到此错误,那么就我而言,问题是我在创建项目后而不是在创建时实施了 firebase 分析。所以花了24小时来反映。 24 小时后一切正常。