|
@@ -1766,5 +1766,20 @@ export default {
|
1766
|
1766
|
// Update the view
|
1767
|
1767
|
APP.UI.setLocalRaisedHandStatus(raisedHand);
|
1768
|
1768
|
}
|
|
1769
|
+ },
|
|
1770
|
+ /**
|
|
1771
|
+ * Log event to callstats and analytics.
|
|
1772
|
+ * @param {string} name the event name
|
|
1773
|
+ * @param {int} value the value (it's int because google analytics supports
|
|
1774
|
+ * only int).
|
|
1775
|
+ * NOTE: Should be used after conference.init
|
|
1776
|
+ */
|
|
1777
|
+ logEvent(name, value) {
|
|
1778
|
+ if(JitsiMeetJS.analytics) {
|
|
1779
|
+ JitsiMeetJS.analytics.sendEvent(name, value);
|
|
1780
|
+ }
|
|
1781
|
+ if(room) {
|
|
1782
|
+ room.sendApplicationLog(JSON.stringify({name, value}));
|
|
1783
|
+ }
|
1769
|
1784
|
}
|
1770
|
1785
|
};
|