Answers about slots
Questions and answers from the Croct community about slots.
Does the VTEX integration also render personalized content or just track events?
I installed the GTM tag and I can see the events arriving on the dashboard, so that part is working. But I am confused about how the personalized content…
How many Croct slots do I need for a homepage with several personalized blocks?
Scoping a Storyblok homepage where three blocks would be personalized: the hero, a promo strip, and a testimonials block. Before I commit I want to understand…
For personalized blocks, should the copy live in Sanity or in Croct?
I am designing how content is authored across our Sanity project and Croct, and I want to get the data model right before anyone starts building. My main…
Where do I call fetchContent for a Storyblok-mapped slot in the App Router?
App Router site rendering Storyblok stories, and I have mapped a hero block to a Croct slot. I want the personalized content to arrive server-rendered so…
How do I get TypeScript types for the content a slot returns in React?
I am tired of treating slot content as any in my React components. Right now I destructure useContent('home-hero') and TypeScript has no idea what the fields…
Best way to get typed slot content in a TypeScript Hydrogen project?
Our Hydrogen storefront is strict TypeScript, no implicit any, and I would like slot content to be typed end to end rather than casting the fetch result to…
How do I get the content from a slot properly typed in TypeScript?
wiring up content fetching and the content coming back is basically unknown, so I get no autocomplete and no safety on the fields. Right now I am casting it…
A content publish broke our prod build, was it because we did not pin the slot version?
Someone on the content side published a schema change to a slot and our Next app immediately started getting content that did not match our types. Here is…
Can I use the PHP SDK on a plain PHP app with no framework?
Legacy app here. Plain PHP, no Laravel or Symfony anywhere and no plan to add one. I want to render one personalized slot server-side. Every example points at…
If I fetch Strapi content over GraphQL, does Croct need to hook into that query?
Our app pulls everything from Strapi through the GraphQL plugin. Before I wire Croct in I want to get the mental model right. Does Croct need to hook into…
Should I pin slot versions in my Hydrogen loaders or is @latest fine?
Going through our loaders and I noticed some of our slot ids have no version suffix, just the plain id. That worries me a bit. If a content editor publishes a…
Running two experiments on different slots at the same time, do they interfere?
I ran experimentation programs at my previous company where we serialized everything out of interaction-effect paranoia, and it throttled the roadmap badly.…