Frameworks and SPAs

Pertento for Nuxt

One entry in the app head configuration covers every route, and it lands in the server-rendered HTML rather than after hydration.

One script tag · 0.9 KB · no cookiesAll integrations

Nuxt renders on the server and then hydrates, which is the case Pertento is built for: the tag goes into the application head configuration so it is present in the server-rendered HTML rather than added once the bundle runs. That ordering is what keeps the original from flashing into the variant. Assignment persists across client-side navigation, so a visitor moving between routes stays in one variant instead of being re-rolled on every page.

How it connects

  • Declare the tag in the app head configuration so it lands in the server-rendered HTML.
  • Load it before hydration rather than from a client-only plugin.
  • Let assignment persist across route changes.

More in Frameworks and SPAs

All integrations

Better experiments, better conversions

Test on all visitors with the world’s lightest script and make confident decisions powered by real-time reporting.