mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-20 17:57:47 +00:00
Adds more analytics events for shortcuts, recording and shared video. Changes the way we calculate ttfm.
19 lines
866 B
JavaScript
19 lines
866 B
JavaScript
/* global config, JitsiMeetJS */
|
|
|
|
// Load the integration of a third-party analytics API such as Google Analytics.
|
|
// Since we cannot guarantee the quality of the third-party service (e.g. their
|
|
// server may take noticeably long time to respond), it is in our best interest
|
|
// (in the sense that the intergration of the analytics API is important to us
|
|
// but not enough to allow it to prevent people from joining a conference) to
|
|
// download the API asynchronously. Additionally, Google Analytics will download
|
|
// its implementation asynchronously anyway so it makes sense to append the
|
|
// loading on our side rather than prepend it.
|
|
if (config.disableThirdPartyRequests !== true) {
|
|
JitsiMeetJS.util.ScriptUtil.loadScript(
|
|
'analytics.js?v=1',
|
|
/* async */ true,
|
|
/* prepend */ false);
|
|
}
|
|
|
|
export default JitsiMeetJS.analytics;
|