THIS ARTICLE WILL HELP YOU:
Experiments with Query Strings
Convert Experiments has several ways to define the pages where an experiment will run (Locations):
-
By Page URL
-
By Query Sting
-
By Tagged pages (not available at all plan levels)
-
By JS Condition (e.g. ((window.location.href=="http://www.convert.com") && (user_logged_in = '0))
- By Page URL (with Query String)
Firing an experiment on a page that has URL like http://www.domain.com/index.php?pageID=140 can be done in different ways depending on what's needed to be achieved:
- If we want to ignore the Query String from the page address and we just want to match the rest, Page URL is the perfect option; Page URL <match type for example: Matches Exactly> http://www.domain.com/index.php will match any pages like http://www.domain.com/index.php OR http://www.domain.com/index.php?pageID=140 OR http://www.domain.com/index.php followed by any Query String variables since those are not included in the match
- If we want to match the full complete URL including Query string variables then Page URL W/QUERY is the right option; Page URL W/QUERY <match type or example: Matches Exactly> http://www.domain.com/index.php?pageID=140 will match only that page. As opposed to previous example http://www.domain.com/index.php will not be matched
- Query String option will only match against the query string from the URL. Example, if the URL is http://www.domain.com/index.php?pageID=140 only pageID=140 will be used in the matching process. Example: Query String <match type for example: Contains> pageID=140.