diff --git a/src/Modal.js b/src/Modal.js index 38bcfad448..11c5d3d9c0 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -105,7 +105,7 @@ class ModalManager { } createDialog(Element, props, className) { - Analytics.trackEvent('Modal', props.title, 'createDialog'); + Analytics.trackEvent('Modal', props && props.title ? props.title : className, 'createDialog'); return this.createDialogAsync((cb) => {cb(Element);}, props, className); }