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'innuxt.config.jsand the same code. nuxt generate/ static hosting: nothing changes, the script runs in the browser.- Using
@nuxtjs/gtmor a CMP module? See Consent — Google Consent Mode and the listed CMPs are detected without configuration.
Run the Test Script
- 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, CSPconnect-src, consent manager, script position and www redirect. - Open your site with
?prynt_debug=1to see the live panel from the browser's point of view (consent, CMP, storage,cspBlocked, last send). - 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.
Last updated 2026-11-03 · Limits · Visitor opt-out