Add unengaged subscribers prebuilt segment

MAILPOET-5685
This commit is contained in:
John Oleksowicz
2024-02-20 14:13:15 -06:00
committed by Aschepikov
parent 78dcd0fa3d
commit 94512ff543

View File

@@ -81,16 +81,37 @@ export const templates: SegmentTemplate[] = [
],
filtersConnect: SegmentConnectTypes.OR,
},
// {
// name: __('Unengaged Subscribers', 'mailpoet'),
// slug: 'unengaged-subscribers',
// category: SegmentTemplateCategories.ENGAGEMENT,
// description: __(
// 'Contacts who havent interacted with your emails, havent made a purchase, or havent visited your page in the last 6 months.',
// 'mailpoet',
// ),
// isEssential: true,
// },
{
name: __('Unengaged Subscribers', 'mailpoet'),
slug: 'unengaged-subscribers',
category: SegmentTemplateCategories.ENGAGEMENT,
description: __(
'Contacts who havent interacted with your emails, havent made a purchase, or havent visited your page in the last 6 months.',
'mailpoet',
),
filters: [
{
segmentType: 'userRole',
action: 'lastEngagementDate',
operator: 'notInTheLast',
value: '180',
},
{
segmentType: 'userRole',
action: 'subscribedDate',
operator: 'notInTheLast',
value: '210',
},
{
segmentType: 'email',
action: 'numberReceived',
operator: 'more',
emails: '9',
timeframe: Timeframe.ALL_TIME,
},
],
isEssential: true,
},
// {
// name: __('First-Time Buyers', 'mailpoet'),
// slug: 'first-time-buyers',