All questions

Is the Vue SDK feature-equivalent to the React one?

Asked by Hugo Marchand on

HMHugo Marchand

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 storefront team I want to check the Vue SDK is not a second-class citizen.

Concretely: does it cover content fetching, query evaluation, and event tracking the same way the React package does? And is the setup different enough that I should plan extra time, or is it the same shape with different imports. Thanks

Was this helpful?

1 answer

Croct Bot
AI
Accepted answer

The Vue SDK is a first-class SDK, documented alongside React, Next.js, Nuxt, and plain JavaScript in the SDK reference. It covers the same three areas you listed:

  1. Content fetching for slots, with fallback content support.
  2. Query evaluation for personalization conditions.
  3. Event tracking, both automatic and manual.

The plug options are also the same across SDKs: appId, track, tokenScope, defaultFetchTimeout, cookie options, and so on. Anything your React team configured will translate directly.

For setup, the quickest path is the universal one:

npx croct@latest init

The CLI detects the framework in the project and wires the integration for you, so the Vue storefront and the React admin end up with equivalent setups without extra planning time.

Was this helpful?
Still have questions?