Documentation · Prynt Reveal · Install

Nuxt / Vue

A client-only plugin starts Reveal once; Vue Router navigations are pageviews automatically.

Nuxt 3

npm install @pryntid/js
// plugins/prynt-reveal.client.ts — ".client" = never runs on the server
import { reveal } from '@pryntid/js/reveal';

export default defineNuxtPlugin(() => {
  const client = reveal({ publicKey: useRuntimeConfig().public.pryntKey, website: 'example.com' });
  // Nuxt router goes through history.pushState → pageviews are automatic. Hash mode: call
  // client.pageview() from router.afterEach instead.
  return { provide: { reveal: client } };
});

// nuxt.config.ts
// runtimeConfig: { public: { pryntKey: 'pk_live_YOUR_PUBLIC_KEY' } }

Use $reveal.identify({ email }) from any component after your login, and $reveal.track('pricing_calculator', { seats }) for custom events.

Vue 3 without Nuxt

Call PryntReveal.reveal({ publicKey, website }) in main.ts after createApp(App).mount('#app'). History-mode routers need nothing; with createWebHashHistory call reveal.pageview() in router.afterEach.

Notes

  • Nuxt 2: a plugin with mode: 'client' in nuxt.config.js and the same code.
  • nuxt generate / static hosting: nothing changes, the script runs in the browser.
  • Using @nuxtjs/gtm or a CMP module? See Consent — Google Consent Mode and the listed CMPs are detected without configuration.

Run the Test Script

  1. In the console go to Websites → your site → **Test Script**. It fetches your page from our side and runs the seven checks: snippet present, public key, website match, CSP script-src, CSP connect-src, consent manager, script position and www redirect.
  2. Open your site with ?prynt_debug=1 to see the live panel from the browser's point of view (consent, CMP, storage, cspBlocked, last send).
  3. Visit two or three pages. The pulse in the console shows the last event within seconds; the first companies appear as soon as a business network visits.

A cspBlocked: true or a failed CSP check means your Content-Security-Policy needs the two lines from CSP and storage. Running a consent manager? Consent explains what is detected and what is sent before the visitor decides.

Next: Astro

Last updated 2026-11-03 · Limits · Visitor opt-out