How to target product pages with URLs that do not follow a specific structure
If you have thousands of product pages with URLs that do not follow specific structure, what is the best practice to run an experiment on only the pages that contain products related to candy? For reference, here are 3 example product page URLs:
Solved! Go to Solution.
This is a great question, and similar to one I just answered here, albeit different:
In your case, I'd strongly recommend using custom tags (see here: https://help.optimizely.com/hc/en-us/articles/201876450#custom_tags) to flag these 'candy' pages and then set up an Audience for the custom tag of 'candy'.
This will require a little dev work to install the custom tag above the Optimizely Snippet on each of these pages, but once done, you can use this custom tag Audience over and over again and again.
On your page, a custom tag would like like the following:
<!-- Optimizely Custom Tag -->
window['optimizely'] = window['optimizely'] || ;
window['optimizely'].push(["customTag", "article type", "sports"]);
<!-- Optimizely Snippet -->
I hope this helps!
Optimizely - Turning the World's data into action