Answers about cql
Questions and answers from the Croct community about cql.
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…
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…
Geo-targeting a VTEX storefront by region, what signal do I use?
National VTEX retailer. We want a different homepage banner for shoppers in one state versus the rest of the country. A few things I want to pin down before I…
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…
"user is anonymous" vs "user is returning", which one for first-time visitors?
Building a welcome experience for genuine first-time visitors and a separate one for people coming back. I keep tripping over whether anonymous and returning…
Can an audience target visitors who showed interest in certain categories?
I am planning a merchandising experience aimed at visitors whose behaviour shows an affinity for a couple of product categories, say shoes and clothes. I…
What is the difference between "cart is empty" and "cart's stage is checkout"?
setting up two experiences. One should encourage people who have an empty cart to start browsing, and the other targets people who already reached checkout. I…
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 build an audience for visitors with a high 6sense intent score?
Our team runs 6sense and I want to surface a stronger offer only to accounts that are actually showing buying intent, not to everyone who lands on the site.…
How do I build a cart-abandoner audience from VTEX cart events?
My VTEX store is now streaming cart events into Croct and I want to target the shoppers who keep abandoning carts with a little return-nudge experience. I…
Showing different lookbooks by browsing interest on a fashion storefront
Hola! First the merchandising brief, then the question. Our brand sells dresses, sneakers, and accessories. The merchandising team wants the homepage lookbook…
Can I build one value out of two strings in CQL with the & operator?
factoring a long audience condition and the same prefix shows up in a few clauses. I would rather keep it in one place than retype it everywhere. I saw &…