Skip to content

Commit 3da6434

Browse files
authored
feat: rename newsletter tracking (#4358)
1 parent 278e3a2 commit 3da6434

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

includes/wizards/class-newsletters-wizard.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ private function get_tabs() {
424424
];
425425
}
426426

427+
$tabs[] = [
428+
'textContent' => esc_html__( 'Tracking', 'newspack-plugin' ),
429+
'href' => admin_url( 'edit.php?post_type=' . Newspack_Newsletters::NEWSPACK_NEWSLETTERS_CPT . '&page=' . $this->slug . '#/tracking' ),
430+
];
431+
427432
return $tabs;
428433
}
429434

src/wizards/newsletters/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NewslettersWizard extends Component {
3131
path: '/',
3232
},
3333
{
34-
label: __( 'Tracking', 'newspack-plugin' ),
34+
label: __( 'Ads Tracking', 'newspack-plugin' ),
3535
path: '/tracking',
3636
},
3737
];

src/wizards/newsletters/views/tracking/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ export default withWizardScreen( () => {
5252

5353
return (
5454
<>
55-
<h1>{ __( 'Tracking', 'newspack-plugin' ) }</h1>
55+
<h1>{ __( 'Ads Tracking', 'newspack-plugin' ) }</h1>
5656
<ActionCard
5757
title={ __( 'Click-tracking', 'newspack-plugin' ) }
58-
description={ __( 'Track the clicks on the links in your newsletter.', 'newspack-plugin' ) }
58+
description={ __( 'Track the clicks on ads in your newsletter.', 'newspack-plugin' ) }
5959
disabled={ inFlight }
6060
toggleOnChange={ handleChange( 'click' ) }
6161
toggleChecked={ tracking.click }
6262
/>
6363
<ActionCard
64-
title={ __( 'Tracking pixel', 'newspack-plugin' ) }
65-
description={ __( 'Track the opens of your newsletter.', 'newspack-plugin' ) }
64+
title={ __( 'Ads impressions', 'newspack-plugin' ) }
65+
description={ __( 'Track the impressions of ads in your newsletter.', 'newspack-plugin' ) }
6666
disabled={ inFlight }
6767
toggleOnChange={ handleChange( 'pixel' ) }
6868
toggleChecked={ tracking.pixel }

0 commit comments

Comments
 (0)