Optimize
4.4K members online now
4.4K members online now
Learn how to create your first experiment and get tips on creating A/B, redirect, and multivariate tests.
Guide Me
star_border
Reply
Highlighted

Experiments with Dynamic URLs

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

I have created a redirect experiment but I have dynamic URLs.
In redirect experiments can I use RegEx for original or variant URL?

Thanks

1 Expert replyverified_user

Experiments with Dynamic URLs

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

I am also struggling the with the same, I have a URL where the last part of the URL varies based on the product you selected and therefore my experiment only seems to be running on 1 of the pages and I dont seem to be able to use * for a wildcard URL selection for the experiment. 

Experiments with Dynamic URLs

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

I am in the same situation.
My original url is like this: /product/name-product-97/
My variant url must be: /exp-a/product/name-product-97/

I don't know how do this with redirect test.

Experiments with Dynamic URLs

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Same problem grgrgrgrgrgrgr

Experiments with Dynamic URLs

Google Employee
# 5
Google Employee

Its not possible at the moment to achieve any dynamic redirect scenario that one may have (i.e. different domain or insertions in the path) but its possible to achieve a "relative path" redirect, i.e. append a path or add a query parameter. I hope that more dynamic redirect capabilities will be added soon.

 

Possible dynamic redirects:

http://www.site.com/path/?query -> http://www.site.com/path/newPath?query  (variant newPath/)

http://www.site.com/path/?query -> http://www.site.com/path?query&newquery (variant ?newquery)

http://www.site.com/path/?query -> http://www.site.com/path/newPath?query&newquery (variant newPath/?newquery)

 

 

See here for the steps needed:

https://www.en.advertisercommunity.com/t5/Google-Optimize-Experiment/Experiments-with-Dynamic-URLs/t...