Answers about sdk
Questions and answers from the Croct community about sdk.
Is there an official Croct SDK for PHP, or do we hit the HTTP API by hand?
our stack is mostly PHP and we want to add personalization to a few pages without bolting a client-side snippet onto the frontend. server-rendered is the…
With Sanity, do I install a plugin in Studio or is it all on the frontend?
setting up personalization on an existing Sanity project and I am a bit confused about where the integration actually lives. I assumed there would be a Studio…
Backend is Laravel with Blade templates, can we use Croct without a JS framework?
Hi all. Our whole stack is Laravel with Blade templates rendered server-side, no SPA anywhere and honestly no plans for one. We want to add personalization to…
Is the Vue SDK feature-equivalent to the React one?
Hello everyone. Our team is split between a Vue 3 storefront and a React admin, and we already use Croct on the React side. Before I promise anything to the…
Sanity + Remix, what is the supported Croct integration path?
We run a Sanity-backed marketing site on Remix. Looking at the Croct docs I see SDKs for Next.js, React, Vue, and Nuxt, but nothing Remix-specific. My…
typescript-eslint no-floating-promises flags every croct.track and croct.identify call
Enabled the strict typescript-eslint preset. Result: on every croct.track() and croct.identify() in the codebase. Before I blanket-void them: is awaiting…
We are a Drupal shop, is there actual Drupal support or just generic PHP?
We are evaluating personalization vendors for several client projects, all of them Drupal. Before I put Croct on the shortlist, I would like a clear answer on…
Plain Remix app, not Shopify. Is the Hydrogen SDK usable or what are my options?
Saw that the Croct Hydrogen SDK docs mention Remix, which got my hopes up. My app is plain Remix, no Shopify anywhere. Does the Hydrogen SDK work outside a…
Storyblok rendered with SvelteKit, can I still use Croct without an official SDK?
hey all. Our Storyblok frontend is SvelteKit and I noticed the Croct SDK list covers React, Next.js, Vue, Nuxt and so on, but nothing for Svelte. Before I…
When should I use the Slot component instead of the useContent hook?
Hi all, reading through the React SDK docs and I see there's both a <Slot> component and a useContent hook that seem to do the same job. Is there an actual…