What to do next
Three steps. Roughly ten minutes. Your keys are already filled in below — just copy and paste.
1
Add to your storefront
Browser-safe
Paste this into your site's <head> on every page where you want to ask shoppers for context.
2
Add a backend endpoint
Server-only — never client-side
Add this Express route (or your stack's equivalent). Trades a grant ID for the actual personalization fields. Never put your secret key in browser code.
3
See it working & read the full guide
A live storefront using ContextPass with the consent modal, grants, and re-ranked products — see exactly what your customers will experience.