Skip to content

Commit

Permalink
Adds Metric Type to full screen launch tracking (#42692) (#43327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Robertson authored Aug 16, 2019
1 parent 6fdb7b6 commit 39ea5b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
getPages,
} from '../../state/selectors/workpad';
import { zoomHandlerCreators } from '../../lib/app_handler_creators';
import { trackCanvasUiMetric } from '../../lib/ui_metric';
import { trackCanvasUiMetric, METRIC_TYPE } from '../../lib/ui_metric';
import { LAUNCHED_FULLSCREEN, LAUNCHED_FULLSCREEN_AUTOPLAY } from '../../../common/lib/constants';
import { Workpad as Component } from './workpad';

Expand Down Expand Up @@ -56,6 +56,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {

if (value === true) {
trackCanvasUiMetric(
METRIC_TYPE.COUNT,
stateProps.autoplayEnabled
? [LAUNCHED_FULLSCREEN, LAUNCHED_FULLSCREEN_AUTOPLAY]
: LAUNCHED_FULLSCREEN
Expand Down

0 comments on commit 39ea5b7

Please sign in to comment.