Merge pull request #759 from jitsi/analytics-update
Adds more analytics events.
This commit is contained in:
commit
a5a7b63abf
|
@ -13,6 +13,7 @@ import CQEvents from './service/connectionquality/CQEvents';
|
||||||
import UIEvents from './service/UI/UIEvents';
|
import UIEvents from './service/UI/UIEvents';
|
||||||
|
|
||||||
import mediaDeviceHelper from './modules/devices/mediaDeviceHelper';
|
import mediaDeviceHelper from './modules/devices/mediaDeviceHelper';
|
||||||
|
import AnalyticsAdapter from './modules/statistics/AnalyticsAdapter';
|
||||||
|
|
||||||
import {reportError} from './modules/util/helpers';
|
import {reportError} from './modules/util/helpers';
|
||||||
|
|
||||||
|
@ -889,6 +890,7 @@ export default {
|
||||||
return this.useVideoStream(stream);
|
return this.useVideoStream(stream);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.videoSwitchInProgress = false;
|
this.videoSwitchInProgress = false;
|
||||||
|
AnalyticsAdapter.sendEvent('conference.sharingDesktop.start');
|
||||||
console.log('sharing local desktop');
|
console.log('sharing local desktop');
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
this.videoSwitchInProgress = false;
|
this.videoSwitchInProgress = false;
|
||||||
|
@ -934,6 +936,7 @@ export default {
|
||||||
([stream]) => this.useVideoStream(stream)
|
([stream]) => this.useVideoStream(stream)
|
||||||
).then(() => {
|
).then(() => {
|
||||||
this.videoSwitchInProgress = false;
|
this.videoSwitchInProgress = false;
|
||||||
|
AnalyticsAdapter.sendEvent('conference.sharingDesktop.stop');
|
||||||
console.log('sharing local video');
|
console.log('sharing local video');
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
this.useVideoStream(null);
|
this.useVideoStream(null);
|
||||||
|
@ -1292,6 +1295,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
room.selectParticipant(id);
|
room.selectParticipant(id);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
AnalyticsAdapter.sendEvent('selectParticipant.failed');
|
||||||
reportError(e);
|
reportError(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1316,6 +1320,7 @@ export default {
|
||||||
APP.UI.addListener(
|
APP.UI.addListener(
|
||||||
UIEvents.VIDEO_DEVICE_CHANGED,
|
UIEvents.VIDEO_DEVICE_CHANGED,
|
||||||
(cameraDeviceId) => {
|
(cameraDeviceId) => {
|
||||||
|
AnalyticsAdapter.sendEvent('settings.changeDevice.video');
|
||||||
createLocalTracks({
|
createLocalTracks({
|
||||||
devices: ['video'],
|
devices: ['video'],
|
||||||
cameraDeviceId: cameraDeviceId,
|
cameraDeviceId: cameraDeviceId,
|
||||||
|
@ -1336,6 +1341,7 @@ export default {
|
||||||
APP.UI.addListener(
|
APP.UI.addListener(
|
||||||
UIEvents.AUDIO_DEVICE_CHANGED,
|
UIEvents.AUDIO_DEVICE_CHANGED,
|
||||||
(micDeviceId) => {
|
(micDeviceId) => {
|
||||||
|
AnalyticsAdapter.sendEvent('settings.changeDevice.audioIn');
|
||||||
createLocalTracks({
|
createLocalTracks({
|
||||||
devices: ['audio'],
|
devices: ['audio'],
|
||||||
cameraDeviceId: null,
|
cameraDeviceId: null,
|
||||||
|
@ -1356,6 +1362,7 @@ export default {
|
||||||
APP.UI.addListener(
|
APP.UI.addListener(
|
||||||
UIEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
UIEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
||||||
(audioOutputDeviceId) => {
|
(audioOutputDeviceId) => {
|
||||||
|
AnalyticsAdapter.sendEvent('settings.changeDevice.audioOut');
|
||||||
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
||||||
.then(() => console.log('changed audio output device'))
|
.then(() => console.log('changed audio output device'))
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* global $, APP, config, interfaceConfig */
|
/* global $, APP, config, interfaceConfig */
|
||||||
import UIEvents from "../../service/UI/UIEvents";
|
import UIEvents from "../../service/UI/UIEvents";
|
||||||
|
import AnalyticsAdapter from '../statistics/AnalyticsAdapter';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the html for the overall feedback window.
|
* Constructs the html for the overall feedback window.
|
||||||
|
@ -199,9 +200,12 @@ var Feedback = {
|
||||||
var feedbackDetails
|
var feedbackDetails
|
||||||
= document.getElementById("feedbackTextArea").value;
|
= document.getElementById("feedbackTextArea").value;
|
||||||
|
|
||||||
if (feedbackDetails && feedbackDetails.length > 0)
|
if (feedbackDetails && feedbackDetails.length > 0) {
|
||||||
|
AnalyticsAdapter.sendEvent(
|
||||||
|
'feedback.rating', Feedback.feedbackScore);
|
||||||
APP.conference.sendFeedback( Feedback.feedbackScore,
|
APP.conference.sendFeedback( Feedback.feedbackScore,
|
||||||
feedbackDetails);
|
feedbackDetails);
|
||||||
|
}
|
||||||
|
|
||||||
if (feedbackWindowCallback)
|
if (feedbackWindowCallback)
|
||||||
feedbackWindowCallback();
|
feedbackWindowCallback();
|
||||||
|
@ -227,6 +231,7 @@ var Feedback = {
|
||||||
closeText: '',
|
closeText: '',
|
||||||
loaded: onLoadFunction,
|
loaded: onLoadFunction,
|
||||||
position: {width: 500}}, null);
|
position: {width: 500}}, null);
|
||||||
|
AnalyticsAdapter.sendEvent('feedback.open');
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Toggles the appropriate css class for the given number of stars, to
|
* Toggles the appropriate css class for the given number of stars, to
|
||||||
|
|
|
@ -26,8 +26,12 @@ function openLinkDialog () {
|
||||||
false, "dialog.Invite",
|
false, "dialog.Invite",
|
||||||
function (e, v) {
|
function (e, v) {
|
||||||
if (v && roomUrl) {
|
if (v && roomUrl) {
|
||||||
|
AnalyticsAdapter.sendEvent('toolbar.invite.button');
|
||||||
emitter.emit(UIEvents.USER_INVITED, roomUrl);
|
emitter.emit(UIEvents.USER_INVITED, roomUrl);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
AnalyticsAdapter.sendEvent('toolbar.invite.cancel');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
function (event) {
|
function (event) {
|
||||||
if (roomUrl) {
|
if (roomUrl) {
|
||||||
|
@ -37,6 +41,10 @@ function openLinkDialog () {
|
||||||
$(event.target).find('button[value=true]').prop('disabled', true);
|
$(event.target).find('button[value=true]').prop('disabled', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
function (e, v, m, f) {
|
||||||
|
if(!v && !m && !f)
|
||||||
|
AnalyticsAdapter.sendEvent('toolbar.invite.close');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue