Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions includes/wizards/class-newsletters-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ private function get_tabs() {
];
}

$tabs[] = [
'textContent' => esc_html__( 'Tracking', 'newspack-plugin' ),
'href' => admin_url( 'edit.php?post_type=' . Newspack_Newsletters::NEWSPACK_NEWSLETTERS_CPT . '&page=' . $this->slug . '#/tracking' ),
];

return $tabs;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wizards/newsletters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NewslettersWizard extends Component {
path: '/',
},
{
label: __( 'Tracking', 'newspack-plugin' ),
label: __( 'Ads Tracking', 'newspack-plugin' ),
path: '/tracking',
},
];
Expand Down
8 changes: 4 additions & 4 deletions src/wizards/newsletters/views/tracking/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ export default withWizardScreen( () => {

return (
<>
<h1>{ __( 'Tracking', 'newspack-plugin' ) }</h1>
<h1>{ __( 'Ads Tracking', 'newspack-plugin' ) }</h1>
<ActionCard
title={ __( 'Click-tracking', 'newspack-plugin' ) }
description={ __( 'Track the clicks on the links in your newsletter.', 'newspack-plugin' ) }
description={ __( 'Track the clicks on ads in your newsletter.', 'newspack-plugin' ) }
disabled={ inFlight }
toggleOnChange={ handleChange( 'click' ) }
toggleChecked={ tracking.click }
/>
<ActionCard
title={ __( 'Tracking pixel', 'newspack-plugin' ) }
description={ __( 'Track the opens of your newsletter.', 'newspack-plugin' ) }
title={ __( 'Ads impressions', 'newspack-plugin' ) }
description={ __( 'Track the impressions of ads in your newsletter.', 'newspack-plugin' ) }
disabled={ inFlight }
toggleOnChange={ handleChange( 'pixel' ) }
toggleChecked={ tracking.pixel }
Expand Down