Answers about cql
Questions and answers from the Croct community about cql.
Targeting returning shoppers on Hydrogen, which CQL condition is right?
I want to show a different homepage module to shoppers who have been to the store before versus first-timers. I have been poking at the CQL and I am not sure…
How do I evaluate a CQL audience condition from my PHP backend?
my PHP service picks what to render based on whether the visitor matches an audience. Right now I fetch a slot for every case and branch on the result, which…
How do I match a specific URL query parameter value in an audience?
our newsletter links all carry a query parameter, something like ?newsletter=daily-news, and I want a tailored hero only for people who arrive with that exact…
Targeting a Strapi page by a custom plan-tier attribute, why does my CQL not match?
setting a custom attribute for subscription tier. want an audience that matches paid accounts on our Strapi upgrade banner. write: audience CQL: never…
useEvaluation for a value, not just a boolean, and a safe default if it fails
Most examples I find use useEvaluation for an on/off flag. I want a component to read an actual value from an evaluation instead, like the visitor's country…
Our Ninetailed audiences were all UTM-based. How do I rebuild those in CQL?
Most of our old audiences on the Contentful setup keyed off campaign UTMs, so paid visitors landed on different hero copy than organic ones. Source and medium…
How do I target a spending band with is between on cart subtotal?
I want a free-gift banner only for carts in a mid-value range. Not the tiny carts, and not the big spenders who already qualify for something else. I could…
Show a different Storyblok promo block to visitors from a specific campaign
Running paid campaigns that land on a Storyblok page and I want the promo block to change for people arriving from one specific compaign. I got as far as this…
Can I target by a visitor's local currency or time zone, not just country?
I want to show region-appropriate pricing messaging based on the visitor's currency, and schedule a promo around their local time zone, rather than…
Which CQL attributes exist for B2B targeting like company and job title?
Building account-based experiences for a B2B analytics SaaS. In our CRM I have these fields per contact: company, job title, industry, company size, buying…
Wrapping evaluate in a Vue composable for a feature flag
I like small reusable helpers, so I want a Vue composable that evaluates a CQL condition to gate a feature and returns a safe default if the call fails. Two…
Audience for visitors who checked the pricing page earlier but did not sign up
Our funnel is content page > /pricing > trial signup. The drop between the second and third step is where I want to intervene: anyone who visited /pricing in…