analyticsがない https://github.com/FirebaseExtended/flutterfire/issues/3017
messagingがない https://github.com/FirebaseExtended/flutterfire/issues/7461
<body> <!-- This script installs service_worker.js to provide PWA functionality to application. For more information, see: https://developers.google.com/web/fundamentals/primers/service-workers --> <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-app.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-analytics.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-firestore.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-auth.js"></script> <!-- Web設定 --> <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-messaging.js"></script> <!-- Firebase Devの設定 --> <script type="module"> // Import the functions you need from the SDKs you need import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.2/firebase-app.js"; import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.6.2/firebase-analytics.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries // Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { 自分の設定で }; // こっちはダメ // const app = initializeApp(firebaseConfig); // const analytics = getAnalytics(app); // Initialize Firebase firebase.initializeApp(firebaseConfig); firebase.analytics(); </script>