Targeting by Past Experiment
Quick question - I'd like target users who have seen a previous experiment. I know they're cookied with optimizelyBuckets. Can I use regex in the cookie value field? Or if someone has a smarter idea of how to do this (if user saw experiment A, now see experiment B) that'd be great too.
Hey there! Can you tell us more about what you are hoping to test from a strategic perspective? Will both experiments be running at the same time, or is experiment A paused?
For example, if wanted experiment B to only run for people who were previously bucketed into the experiment A (experiment ID 570101504), then you could use the code below to reference the optimizelyBuckets cookie value and look for a substring match.
var match = document.cookie.match("optimizelyBuckets=([^;]*)"); match && match.indexOf("570101504") > -1;
Does this help? Let me know if you have any questions on the above.