Which is more efficient: web page "contains" or "is"? | Community
Skip to main content
Dan_Stevens_
Level 10
November 7, 2013
Question

Which is more efficient: web page "contains" or "is"?

  • November 7, 2013
  • 5 replies
  • 1232 views
When using a "Visits Web Page" trigger in a Smart Campaign, is it a best practice to use the "contains" or "is" constraint?  And when entering the URL of the web page, I'm also aware that you need to strip out the http:// from the URL for it to work properly. 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

November 7, 2013
If you can use "is" instead of "contains", the query will run a lot faster. Contains is the slowest filter.
Michelle_Tizian
Level 10
November 7, 2013
Yup I do better with "is" too.  
November 8, 2013
Dan, "is" is faster, but can lead to mistakes if you don't test adequately.

"Contains" will grab a lot more, especially if you're just starting out and don't have a big database.

Also, don't forget the "querystring" constraint. Sometimes, it's easy to get mixed up.

Always test, test, test!
November 8, 2013
Hi Dan, we always use "is"

Charlie - what is the querystring constraint please?
Level 10
November 8, 2013
If you want to add a trigger for tracking visits to a single web page on your website, use "is" with the URL of the page. However, if you want to add trigger for visits to any page of the website, you should use "contains" and add the host name for your website.