How do I target mobile Chrome visitors specifically in an audience?
debugging a layout that only breaks on one device and browser combo, and I want to serve a corrected variant to exactly that segment while I work on the real fix.
Cases I care about:
- mobile, not tablet or desktop
- Chrome, not Safari or the in-app browesr
Can I combine a device check and a browser check in one CQL condition?
2 answers
Yes, both are context variables available on every evaluation, so you just and them:
device's category is "mobile" and browser's name is "Chrome"Category keeps it to phones, so tablets and desktop drop out. It is evaluated in real time per interaction as the audience, so as soon as someone on that combo hits the slot they get the corrected variant.
isolated it perfectly, the estimator only shows the segment I was chasing. Now I can ship the patch variant without touching everyone else.
One gotcha that bit me on the same kind of condition: string literals are case-sensitive. browser's name is "chrome" matched nobody because the stored value is "Chrome". Keywords are case-insensitive but the values are not, so copy the casing from what the profile actually stores.