capacitor-firebase
capacitor-firebase copied to clipboard
How to provide the app config in web analytics
I want to pass my app config stated in the Firebase project settings:
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
// 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 = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
But I don't see an option for this here: https://github.com/capawesome-team/capacitor-firebase/blob/327f1c3ad3a7c9f25cc87adc3b53819819beb9db/packages/analytics/src/web.ts#L31
How can I achieve that @robingenz?