All questions

show different strapi content to returning visitors?

Asked by lucia_f on

Llucia_f

nuxt app with a strapi backend. we want first-time visitors to see an explainer hero (what the product is, how it works) and returning visitors to see a product-news hero instead, since they already know the basics.

strapi obviously knows nothing about visitors so I get that this lives in the personalization layer, but how does the behavioral condition actually work? is "returning" something croct tracks for me or do I have to instrument it myself. also does the nuxt sdk support all of this or just the react one

Was this helpful?

1 answer

GFGabriel Fontes

It is tracked for you, no instrumentation needed. Croct builds the behavioral profile from regular activity, so the audience condition is just CQL:

user is returning

If you want to be stricter about who counts as engaged, you can combine signals:

user is returning and session's stats' pageviews > 3

You define that audience inside the experience, keep your explainer hero as the default content coming from Strapi, and author the product-news hero as the variant for the returning audience. First-timers fall through to the default automatically.

And yes, there are dedicated Vue and Nuxt SDKs, so nothing about this setup is React-only. The condition syntax and slot integration work the same across them.

Was this helpful?
Still have questions?