PageDuel Help
Installing and tracking

First-party installation

Proxy PageDuel assets and tracking endpoints through your own domain.

First-party installation1Visitor browser2Your domain proxy3PageDuel assets/API4Analytics
First-party installation

A first-party setup serves pd.js, pd-experiments.js, and /api/s/* through your website. It is useful for strict CSP policies and can reduce blocking by browser extensions.

Configure your platform or reverse proxy to forward those paths to PageDuel without caching event requests. Preserve query strings, request bodies, and the original host. Then set the snippet's API/asset attributes to your first-party paths.

Common choices are Next.js rewrites, Vercel or Netlify redirects, Cloudflare routes, and nginx or Apache proxy rules. Verify pageviews and experiment configuration after enabling the proxy; a script-only proxy is incomplete if event routes still point elsewhere.