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

Dan_Stevens_
Level 10 - Champion Alumni

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

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. 
Tags (1)
5 REPLIES 5
Anonymous
Not applicable

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

If you can use "is" instead of "contains", the query will run a lot faster. Contains is the slowest filter.
Michelle_Tizian
Level 10

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

Yup I do better with "is" too.  
Anonymous
Not applicable

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

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!
Anonymous
Not applicable

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

Hi Dan, we always use "is"

Charlie - what is the querystring constraint please?
Alok_Ramsisaria
Level 10

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

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.