- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
When setting an Experiment Url, can I use wildcards?
When setting an Experiment Url, can I use wildcards?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
I have a page that receives parameters in RESTful style, ie: http://www.domain.com/user/[user-id]
I defined the experiment's url on http://www.domain.com/user/ however it doesn't work.
How can this be solved?
Thanks, Lahat.
Re: When setting an Experiment Url, can I use wildcards?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Absolutely!
That is what the regex matches are for (or substring match)
A regular expression like this will match any URL that contains "domain.com/user/" where there is at least one character following /user:
.*domain\.com\/user\/..*
e.g.,
matches - http://www.domain.com/user/myaccount
does not match - http://www.domain.com/user/
You could also set up a "substring match" that will match any URL that contains "domain.com/user":
domain.com/user
Be sure to read/watch this help article for a nifty video and examples of the different ways to set up URL targetin:
https://help.optimizely.com/hc/en-us/articles/200040835