Next.js
Installation
npm install userlens-analytics-sdkChoose Your Setup
Client-Side Setup
Proxy Setup
Last updated
Integrate the Userlens SDK into your Next.js application, with proper handling for server-side rendering.
npm install userlens-analytics-sdkBest for
Most applications
Apps needing ad blocker resistance
Backend changes
None
Uses Next.js API routes
Setup time
~5 minutes
~15 minutes
Events go directly from the browser to Userlens. Quick to set up, no API routes needed.
Proxy SetupEvents flow through your Next.js API route first. Use this if you need to avoid ad blockers.
Last updated