Skip to content
Last updated

Match Logic Any Advanced Example

Match Logic ANY example

When you use match logic ANY and activate attributes and behaviors, for qualifying profiles with no records meeting the rules of the activated behavior table, behavior data value would be marked as NULL.

If needed, you may exclude profiles containing NULL values using Activation Actions.

The following example demonstrates how the activated behavior data may contain NULL values when using match logic ANY.

Original Data Set

  • Attributes Table
User IDFirst NameCountry
id_1RobCanada
id_2ElleFrance
id_3YusufCanada
  • Behavior Table: Email subscription
User IDEmailEmail Consent
id_1rob@abc.com1
id_1rob@xyz.com1
id_2elle@home.com1
id_2elle@work.com0
id_3yusuf@home.com0
id_3yusuf@work.com0
  • Behavior Table: Web Engagement
User IDActionCampaign NameDevice Type
id_1ClickPre-Sale ConcertMobile
id_1OpenPre-Sale ConcertTablet
id_1ClickSummer Merch SaleMobile
id_1ClickNew Album ReleaseMobile
id_1ClickNew Album ReleaseDesktop
id_2OpenSummer Merch SaleMobile
id_2ClickNew Album ReleaseMobile
id_3ClickSummer Merch SaleLaptop
id_3ClickPre-Sale ConcertLaptop

Rules

Activation

Result

The user _id_3_ fulfills the email_consent criteria but none of the rules in the activated web_engage behavior table so the behavior columns will output NULL values.

user_idactioncampaign_name
id_1OpenPre-Sale Concert
id_2OpenSummer Merch Sale
id_3NULLNULL

Match Logic ADVANCED example

The following example demonstrates how the activated behavior data will work when using match logic ADVANCED.

Original Data Set

Attributes

User IDFirst NameCityCountry
id_1RobyvrCanada
id_2MattparisFrance
id_3AmitclgyCanada
id_4ChloemtrlCanada
id_5EllelyonCanada

Behavior Table: email_subscription

User IDEmailEmail Consent
id_1rob@td.comYes
id_1rob@gmail.comYes
id_1rob@aol.comYes
id_2matt@hotmail.comYes
id_2matt@gmail.comNo
id_3am@td.comNo
id_3am@gmail.comNo
id_4chloe@td.comNo
id_4chloe@gmail.comNo
id_5elle23@gmail.comYes
id_5elle@aol.comYes
id_5elle@work.comNo

Behavior Table: sms_subscription

User IDPhone numberPhone Consent
id_1213-555-1234Yes
id_1510-555-1234Yes
id_2310-555-1234No
id_2818-555-1234Yes
id_3626-555-1234No
id_4408-555-1234Yes
id_4656-555-1234No
id_5223-555-1234No
id_5650-555-1234No

Rules

The segment builder and behavior activations approach these rules the same.

  1. Match Logic with a combination ANY/ALL

  2. Match Logic ADVANCED

Results

  • Output settings: Attributes + Behavior Table = email_activity

  • What behavior data gets exported? Behavior filters from the segment rules will be applied to all qualifying profiles.

    • Segment Rules determined all 5 profiles qualify Behavior Activations applies the filters from the email_activity behavior table (email_consent =is 1) to the behavior data of those qualifying profiles

    • Id_3 (Amit), id_4 (Chloe) do not have any behavior records where email_consent =is 1 so their behavior columns will output NULL values.

  • Attributes
  • Behavior Table (email_subscription)
idfirst_namecountryemail_1email_consent
id_1RobCanadarob@td.com1
id_1RobCanadarob@gmail.com1
id_1RobCanadarob@aol.com1
id_2MattFrancematt@hotmail.com1
id_3AmitCanadaNULLNULL
id_4ChloeCanadaNULLNULL
id_5ElleCanadaelle@aol.com1
id_5ElleCanadaelle23@gmail.com1