diff --git a/client/my-sites/stats/geochart/index.jsx b/client/my-sites/stats/geochart/index.jsx index 99d45da41ea17..ce3b06443d846 100644 --- a/client/my-sites/stats/geochart/index.jsx +++ b/client/my-sites/stats/geochart/index.jsx @@ -29,10 +29,12 @@ class StatsGeochart extends Component { postId: PropTypes.number, skipQuery: PropTypes.bool, isLoading: PropTypes.bool, + numberLabel: PropTypes.string, }; static defaultProps = { kind: 'site', + numberLabel: '', }; state = { @@ -101,7 +103,7 @@ class StatsGeochart extends Component { }; drawData = () => { - const { currentUserCountryCode, data, translate } = this.props; + const { currentUserCountryCode, data, translate, numberLabel } = this.props; if ( ! data || ! data.length ) { return; } @@ -118,7 +120,7 @@ class StatsGeochart extends Component { const chartData = new window.google.visualization.DataTable(); chartData.addColumn( 'string', translate( 'Country' ).toString() ); - chartData.addColumn( 'number', translate( 'Views' ).toString() ); + chartData.addColumn( 'number', numberLabel || translate( 'Views' ).toString() ); chartData.addRows( mapData ); // Note that using raw hex values here is an exception due to diff --git a/client/my-sites/stats/stats-email-module/index.jsx b/client/my-sites/stats/stats-email-module/index.jsx index b375cc3a1b0f3..f0a2a9896e66a 100644 --- a/client/my-sites/stats/stats-email-module/index.jsx +++ b/client/my-sites/stats/stats-email-module/index.jsx @@ -39,7 +39,7 @@ class StatsEmailModule extends Component { const moduleStrings = statsStrings()[ path ]; // TODO: Support error state in redux store const hasError = false; - const metricLabel = statType === 'clicks' ? translate( 'Clicks' ) : null; + const metricLabel = statType === 'clicks' ? translate( 'Clicks' ) : translate( 'Opens' ); return ( <> @@ -59,6 +59,7 @@ class StatsEmailModule extends Component { postId={ postId } query={ query } isLoading={ isLoading } + numberLabel={ metricLabel } /> ) }