I'm logging events using firebase analytics and it's taking about 5 seconds before I can see it in the network logs from the inspect elements. Upon diving deeper I did come to the observation that following function call is consuming the said time:
window.firebaseAnalytics.logEvent()
Can anyone please help me with it to minimise the event log trigger time?