// Import the functions you need from the SDKs you need import { initializeApp } from './firebase-app.js'; import { getAnalytics, logEvent } from './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 = { apiKey: "{{.FBA_apiKey}}", authDomain: "{{.FBA_authDomain}}", databaseURL: "{{.FBA_databaseURL}}", projectId: "{{.FBA_projectId}}", storageBucket: "{{.FBA_storageBucket}}", messagingSenderId: "{{.FBA_messagingSenderId}}", appId: "{{.FBA_appId}}", measurementId: "{{.FBA_measurementId}}" }; // Initialize Firebase const app = initializeApp(firebaseConfig); const analytics = getAnalytics(app); // LogEvent('DESKTOP_TEST8'); export function LogEvent(args){ if ( arguments.length == 1) { logEvent(analytics, arguments[0]); } else { logEvent(analytics, arguments[0], arguments[1]); } }