Answers about cql
Questions and answers from the Croct community about cql.
How do I gate a feature in a server component based on a CQL condition?
i have a promo block I only want to show returning visitors, and I want that decided on the server so there is no hydration flash where the wrong version…
I set a value with session.edit but my CQL still reads nothing, why?
at the start of a visit I write a plan value and then I want an audience to read it back, but the condition never resolves the way I expect. What I tried:…
Targeting a Sanity landing page by country, which signal do I match?
I want visitors from one country to see a different hero on one of our Sanity landing pages. What I am not sure about is which signal I match on, and whether…
How do I build an audience of people who already submitted our HubSpot form?
quick one. submissions from our HubSpot forms are coming into Croct now and I want to stop showing the lead magnet to people who already filled it in. instead…
Can I match any campaign whose name contains "sale" without listing them all?
We spin up a lot of campaigns and the names all include a keyword, for example everything with "sale" in it. I do not want to reopen an audience and add a new…
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…
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…
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…
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…
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…
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…
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…