Skip to content

Commit

Permalink
chore: firebase 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
danah-kim committed Nov 20, 2024
1 parent 2102036 commit 9df951d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/utils/google-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ const firebaseConfig = {
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
authDomain: `${import.meta.env.VITE_FIREBASE_PROJECT_ID}.firebaseapp.com`,
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
storageBucket: `${import.meta.env.VITE_FIREBASE_PROJECT_ID}.appspot.com`,
storageBucket: `${import.meta.env.VITE_FIREBASE_PROJECT_ID}.firebasestorage.com`,
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
appId: import.meta.env.VITE_FIREBASE_APP_ID,
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID
appId: import.meta.env.VITE_FIREBASE_APP_ID
};

let analytics: Analytics;
let analytics: Analytics | undefined;

export const GoogleAnalytics = {
initialize() {
Expand All @@ -39,6 +38,6 @@ export const GoogleAnalytics = {
) {
if (analytics === undefined) return;

logEvent(analytics, eventName, eventParams, options);
logEvent<string>(analytics, eventName, eventParams, options);
}
};

0 comments on commit 9df951d

Please sign in to comment.