diff --git a/client/blocks/stats-navigation/constants.ts b/client/blocks/stats-navigation/constants.ts index e4b4ddc4bc9a78..ca43641ac9a76b 100644 --- a/client/blocks/stats-navigation/constants.ts +++ b/client/blocks/stats-navigation/constants.ts @@ -67,11 +67,9 @@ const insights = { paywall: true, } as NavItem; -// TODO: Consider adding subscriber counts into this nav item in the future. -// See client/blocks/subscribers-count/index.jsx. const subscribers = { get label() { - return translate( 'Subscribers' ); + return translate( 'Newsletter' ); }, path: '/stats/subscribers', showIntervals: false, diff --git a/client/my-sites/stats/pages/shared/helpers.tsx b/client/my-sites/stats/pages/shared/helpers.tsx index 64ed57f5395b68..c6214d00054f7e 100644 --- a/client/my-sites/stats/pages/shared/helpers.tsx +++ b/client/my-sites/stats/pages/shared/helpers.tsx @@ -44,7 +44,7 @@ function getSiteFilters( siteId: number ): SiteFilterType[] { id: 'stats-insights', }, { - title: i18n.translate( 'Subscribers' ), + title: i18n.translate( 'Newsletter' ), path: '/stats/subscribers/' + siteId, id: 'stats-subscribers', period: 'day', // default period for Subscribers diff --git a/client/my-sites/stats/stats-subscribers-chart-section/index.tsx b/client/my-sites/stats/stats-subscribers-chart-section/index.tsx index e32bef2c6c578a..2600494c3f5d39 100644 --- a/client/my-sites/stats/stats-subscribers-chart-section/index.tsx +++ b/client/my-sites/stats/stats-subscribers-chart-section/index.tsx @@ -125,15 +125,10 @@ export default function SubscribersChartSection( { const hasAddedPaidSubscriptionProduct = products && products.length > 0; const chartData = transformData( data?.data || [], hasAddedPaidSubscriptionProduct ); - const subscribers = { - label: 'Subscribers', - path: `/stats/subscribers/`, - }; - const slugPath = slug ? `/${ slug }` : ''; - const pathTemplate = `${ subscribers.path }{{ interval }}${ slugPath }`; + const pathTemplate = `/stats/subscribers/{{ interval }}${ slugPath }`; - const subscribersUrl = isOdysseyStats + const manageSubscribersUrl = isOdysseyStats ? `https://cloud.jetpack.com/subscribers/${ slug }` : `/subscribers/${ slug }`; @@ -144,7 +139,7 @@ export default function SubscribersChartSection( {