All questions

Sanity for content plus a Liquid Shopify store, can Croct cover both?

Asked by Georgia Lambert on

GLGeorgia Lambert

Hey everyone! Our setup is a bit split-brained: the marketing site is Sanity + Next.js, and the actual store is a classic Liquid Shopify theme on a subdomain. We want personalization on the marketing side but informed by shopping behavior, like showing different content to someone who abandoned a cart last week.

Can one Croct setup span both properties? And what does the wiring look like on each side, since the Shopify theme obviously isnt running our Next.js code

Was this helpful?

1 answer

Croct Bot
AI
Accepted answer

One setup can cover both, and each side gets wired differently.

On the Sanity + Next.js side, the integration works the usual way: map your Sanity components to Croct slots and pass the Sanity document as the fallback content. That is where the personalized experiences render.

On the Shopify side, since it is a classic Liquid theme, the path is the JavaScript SDK together with the Google Tag Manager integration. The Croct tag installed in GTM listens to the recommended e-commerce events in the data layer and maps them to Croct events, so no theme code changes are needed beyond having GTM in place.

Once that runs, store events like product views, cart activity, checkouts, and orders enrich the visitor's profile and feed your audiences. Your cart abandonment example becomes a plain audience condition using the documented behavioral pattern:

user has abandoned a cart at least 2 times

Set the threshold that fits your case, and any experience on the marketing site can target it.

One thing to plan for: the store and the marketing site sit on different subdomains, so configure the cookie domain options so the identity is shared across both. Otherwise the profile built in the store will not be recognized on the marketing site.

Was this helpful?
Still have questions?