mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Adds Metric Type to full screen launch tracking (#42692)
This commit is contained in:
parent
67cc190ad4
commit
4432b9116f
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ import {
|
||||||
getPages,
|
getPages,
|
||||||
} from '../../state/selectors/workpad';
|
} from '../../state/selectors/workpad';
|
||||||
import { zoomHandlerCreators } from '../../lib/app_handler_creators';
|
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 { LAUNCHED_FULLSCREEN, LAUNCHED_FULLSCREEN_AUTOPLAY } from '../../../common/lib/constants';
|
||||||
import { Workpad as Component } from './workpad';
|
import { Workpad as Component } from './workpad';
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
|
||||||
|
|
||||||
if (value === true) {
|
if (value === true) {
|
||||||
trackCanvasUiMetric(
|
trackCanvasUiMetric(
|
||||||
|
METRIC_TYPE.COUNT,
|
||||||
stateProps.autoplayEnabled
|
stateProps.autoplayEnabled
|
||||||
? [LAUNCHED_FULLSCREEN, LAUNCHED_FULLSCREEN_AUTOPLAY]
|
? [LAUNCHED_FULLSCREEN, LAUNCHED_FULLSCREEN_AUTOPLAY]
|
||||||
: LAUNCHED_FULLSCREEN
|
: LAUNCHED_FULLSCREEN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue