Optimize
2.1K members online now
2.1K members online now
Discover how to select who is eligible to be in your experiment, and when they’re served experiment variations.
Guide Me
star_border
Reply

Multiple relative urls

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm struggling to figure out how to target/ test multiple product pages.
For example:
https://www.mysite.co.uk/product-vertical/library/product-name?noSection=1 - Original page
https://www.mysite.co.uk/product-vertical/library/product-name?noSection=1&ab=1 - Variation 1
https://www.mysite.co.uk/product-vertical/library/product-name?noSection=1&ab=2 - Variation 2

• My problems are that the "product-name" section of my URL varies depending on which product page you are on. Hence need some relative targeting.
• The noSection=1 is a constant parameter I want to target as I want to test all product pages we do not show section 1. I then have the 2 variant parameters to include for my layout test after this.
• There are multiple places for me to input the page URLs parameters and paths which is confusing. What should my variant URLs be set as? Do I need to use URL targeting or query parameter targeting or a combination of the two?

How do I ensure this test runs on all product pages where the noSection=1 param is in the URL?

Any help would be greatly appreciated.

Multiple relative urls

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

It'd be great to hear what Google would recommend in this situation. This seems like something that could be solved with RegExp. Search for RegExp then use parameter contains for your targeting and say that when noSection= (any number) or ab= (any number), return true.