How can I set up an audience to don't launch a test when a url contains some queryparams?
www.example.com --> Test will run
www.example.com?queryparam1=a&queryparam2=b --> Should be excluded
To set up an audience to don't launch a test when a url contains certain query params. Please follow following steps:
In the Target interface, click Audiences > Create Audience.
Name the audience.
Click Add Rule > Site Pages.
Click Select, then select the following options:
Current Page: The page the user is currently on, which is the page that contains an mbox in the activity. If you target at the activity level, this could be a page with an mbox that you are using to define entry conditions, or a page that displays content. If you are targeting by experience, then the current page is the page that the display mbox is on. For Success metric or conversion targeting, then it is the page that those mboxes are on.
Then , Select the option
Domain: The full domain of the page. When specifying a domain, best practice is to use "contains." For example, "Domain equals facebook.com" will not accept m.facebook.com or www.facebook.com. "Domain contains facebook.com" will accept any variant of facebook.com.
Query: The content of the URL after the first question mark (?). For example, the query is shown in bold in the following sample URL:
Click Add Rule and set up additional rules for the audience.
Please see the following documentation for more help: