Skip to content

Commit

Permalink
fix(analytics): clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ofr1tz committed Apr 24, 2024
1 parent 02a10f4 commit aa4efdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/firebase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ const firebaseConfig = {
export const firebaseApp = initializeApp(firebaseConfig)

export const logAnalyticsEvent = (eventName, eventParams = {}) => {
if(firebaseConfig.measurementId) {
if (firebaseConfig.measurementId) {
const fbAnalytics = initializeAnalytics(firebaseApp)
logEvent(fbAnalytics, eventName, eventParams)
console.log("event logged")
}
}

Expand Down

0 comments on commit aa4efdd

Please sign in to comment.