fix : GA on mount
This commit is contained in:
@@ -13,6 +13,12 @@ const firebaseConfig: FirebaseOptions = {
|
|||||||
|
|
||||||
const app = initializeApp(firebaseConfig);
|
const app = initializeApp(firebaseConfig);
|
||||||
|
|
||||||
|
isSupported().then((supported) => {
|
||||||
|
if (supported) {
|
||||||
|
getAnalytics(app);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
export const logAnalyticsEvent = async (
|
export const logAnalyticsEvent = async (
|
||||||
eventName: string,
|
eventName: string,
|
||||||
eventParams?: Record<string, unknown>
|
eventParams?: Record<string, unknown>
|
||||||
|
|||||||
Reference in New Issue
Block a user