Targeting contacts based on a relative period

In order to target contacts according to the date of an event, firstly you must ensure that the format of the segmented data is properly set. The data must be stored using the US format for the operators to work on the data.

If this requirement is met, it is possible to use the operators to target events. The purpose of this article is to demonstrate how we can target previous events using a relative framework.

Targeting contacts over a relative period in the past

To target contacts over a relative period of time to today (day or earlier period from a day relative to today), it is necessary to use the operator "was X days ago".

In this operator, "x" is the day or the interval (x-y) of the period of time:

“X” is the number of the first day of the period

“Y” corresponds to the number of the last day of the period

The interval is inclusive. Therefore, it takes into account the data included on days X and Y

“0” corresponds the current day

“1” corresponds to yesterday

“2” corresponds the day before yesterday

For example, if we want to target the contacts who opened an email a week ago, we will use the operator as follows:

Condition

Operator

Value

Last open date

was X days ago

7

If we want to target contacts who have opened an email last week, for instance between the 7th and 14th day, we will use the operator as follows:

Condition

Operator

Value

Last open date

was X days ago

7-14

Targeting contacts over a relative period in the future

To target contacts over a period after today (day or period in the future from today), it is necessary to use the "is in X days" operator.

In this operator, "X" is the number of the day or the interval (x-y) of the upcoming period:

“X” is the number of the first day of the period

“Y” corresponds to the number of the last day of the period

The interval is inclusive. Therefore, it takes into account the data included on days X and Y

“0” correspond the current day

“1” corresponds to tomorrow

“2” corresponds to after tomorrow

For example, if we want to target the contacts whose expiration date of subscription (custom field) comes within a week, we will use the criteria as follows:

Condition

Operator

Value

subscription expiration date

is in X days

7

If we want to target the contacts whose expiration date of subscription (custom field) will come next month, for instance between the 30th and the 60th day, we will use the criteria as follows

Condition

Operator

Value

subscription expiration date

is in X days

30-60

If we want to target contacts whose birthday comes in 15 days, we will use the "birthday in (days)" operator as follows: