Next.js (Pages Router)
For projects using the older Pages Router (pages/ directory), the script goes in either pages/_document.tsx or pages/_app.tsx.
Install#
No package install needed. Replace YOUR_PROJECT_ID with the value from /v1/projects.
Add the script#
In pages/_app.tsx, use Next's <Script> component:
Add the container#
Drop the container <div> wherever the wall of love should render:
On the Free plan the container includes a small Wall of love by ShowTrust link. The widget shows it once, under your wall, so keep it inside the container. To hide it, switch off the credit in your widget settings (Pro walls are white-label) and use the bare container: <div id="showtrustto-widget"></div>.