ref(analytics): centralize all event names (#2272)

* ref(analytics): centralize all event names

* squash: fix typo and alpha ordering

* squash: rename file to AnalyticsEvents to parallel lib-jitsi-meet
This commit is contained in:
virtuacoplenny
2017-12-11 10:48:32 -08:00
committed by bgrozev
parent ee1ec42463
commit 9b67e796bd
26 changed files with 899 additions and 111 deletions

View File

@@ -1,7 +1,10 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { sendAnalyticsEvent } from '../../analytics';
import {
REMOTE_VIDEO_MENU_REMOTE_CONTROL_,
sendAnalyticsEvent
} from '../../analytics';
import { translate } from '../../base/i18n';
import RemoteVideoMenuButton from './RemoteVideoMenuButton';
@@ -131,7 +134,7 @@ class RemoteControlButton extends Component {
if (eventName) {
sendAnalyticsEvent(
`remotevideomenu.remotecontrol.${eventName}`,
`${REMOTE_VIDEO_MENU_REMOTE_CONTROL_}.${eventName}`,
{
value: 1,
label: participantID