All questions

How do I target mobile Chrome visitors specifically in an audience?

Asked by lia.frontend on

Llia.frontend

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?

Was this helpful?

2 answers

Ttobias_rAccepted answer

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.

Was this helpful?
Llia.frontend

isolated it perfectly, the estimator only shows the segment I was chasing. Now I can ship the patch variant without touching everyone else.

NHNadia Haq

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.

Was this helpful?
Still have questions?