Contains & Not Contains Together | Community
Skip to main content
Emmanuelle_Biss
Level 4
July 8, 2015
Solved

Contains & Not Contains Together

  • July 8, 2015
  • 2 replies
  • 4145 views

Hi!

I am working on creating a Smart List with the following constraints:

Visits Web Page

Web Page: is any

Querystring: contains: utm_medium=social;

Querystring: not contains: utm_source=Facebook_Ads; utm_source=Twitter_Ads; utm_source=LinkedIn_Ads

Can we create a Smart List with two constraints that are opposite (contains & not contains) under the same trigger? Shall I create the filters with two triggers instead, such as:

Visits Web Page

Web Page: is any

Querystring: contains: utm_medium=social;

Visits Web Page

Web Page: is any

Querystring: not contains: utm_source=Facebook_Ads; utm_source=Twitter_Ads; utm_source=LinkedIn_Ads

Thanks for your help!

Emma

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Josh_Hill13

If we are talking about triggers, Alok is right.

What you could do is:

Trigger: Visits Web Page CONTAINS X

Filter: Visited Web Page NOT CONTAINS Y

test it to see if it works.

In general, it is always better to make a positive statement than a negative one.

2 replies

Level 10
July 8, 2015

Hi Emma Its always better to keep the triggers separate if you are using Contains and Not contains. Same should be done for Is and Is Not.

Emmanuelle_Biss
Level 4
July 8, 2015

Hi Alok,

Thanks for your quick reply. Alright, sounds good. So we can use twice the same trigger, with specific constraints for each, even when they are opposite. However, each constraint needs to be respected for the lead to be qualified then, right? It is an AND and not an OR that's taking place here.

Thanks for your help!

Emma

Josh_Hill13
Level 10
July 8, 2015

No, if you use two triggers, it will not fire the way you want it to.

Josh_Hill13
Josh_Hill13Accepted solution
Level 10
July 8, 2015

If we are talking about triggers, Alok is right.

What you could do is:

Trigger: Visits Web Page CONTAINS X

Filter: Visited Web Page NOT CONTAINS Y

test it to see if it works.

In general, it is always better to make a positive statement than a negative one.

Emmanuelle_Biss
Level 4
July 8, 2015

Hey Josh,

What I am trying to do, is separate my Social visitors from my Social Ads visitors. I have created two Smart List to differentiate one from the other.

Here's what I have:

Social Media Visitors:

Visits Web Page

Web Page: is any

Querystring: contains: utm_medium=Social; utm_medium=SocialMedia

Referrer: contains: facebook; twitter; hootsuite, etc.

Visits Web Page

Web Page: is any

Querystring: not contains: utm_medium=SocialAds; utm_source=Facebook_Ads; utm_source=Linkedin_Ads; utm_source=Twitter_Ads

Social Ads Visitors:

Visits Web Page

Web Page: is any

Querystring: contains: utm_source=Facebook_Ads; utm_source=Linkedin_Ads; utm_source=Twitter_Ads

Referrer: contains: facebook; twitter; hootsuite, etc.

Visits Web Page

Web Page: is any

Querystring: contains: utm_medium=Social; utm_medium=SocialMedia; utm_medium=SocialAds

By creating these two lists this way, will this make sure the two audiences are clearly defined?

Thanks!

Grant_Booth
Level 9
July 8, 2015

Using two triggers will not accomplish what you're looking for. The problem is that triggers will always use OR logic. If you have multiple triggers, then ANY of them can set off the campaign. Josh's solution comes close, but the problem is that you want this to apply to any web page, not just a specific one, so the filter could be qualifying someone who visited a different page with correct query string than the page which triggered it. I'm not certain I can come up with a relatively simple solution for this.