Answers about cql
Questions and answers from the Croct community about cql.
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…
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…
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…
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…
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 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…
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…
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…
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…
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…