Provedly installs as a single script tag, roughly 6 KB gzipped, rendered inside a Shadow DOM so it does not fight your styles. That makes it a good fit for an AI coding agent: give it the snippet, tell it where your layout lives, and ask it to verify. This post provides a prompt you can paste and a checklist for what to confirm afterwards.
What the agent needs from you
Agents do well with concrete inputs and badly with guesses. Before you start, collect:
- Your site's script snippet from the Provedly dashboard. It contains your site identifier; do not let the agent invent one.
- Where your shared layout lives. The file that wraps every page: a root layout in Next.js, a Blade layout in Laravel, a base template in Django,
header.php in a WordPress theme.
- Which pages should show proof. Targeting is configured in Provedly, not in code, but the agent should know not to add conditional logic of its own.
- Whether you use Stripe. If so, you will also want the webhook endpoint set up so purchases arrive verified.
Shopify stores do not need any of this. The Provedly Shopify app uses a theme app extension that you switch on in the theme editor, with no code edits.
A prompt you can paste
Adjust the bracketed parts and hand it to your agent.
Add the Provedly social proof script to this project.
Snippet (use exactly as given, do not modify the site id):
[paste the script tag from the Provedly dashboard]
Requirements:
- Add it once, in the shared layout so it loads on every page:
[path to your layout file]
- Place it before the closing </body> tag, or use the framework's
standard mechanism for third-party scripts (for example next/script
with a non-blocking strategy).
- Do not add page-level conditions; targeting is configured in Provedly.
- Do not add any other analytics or tracking.
- Do not create sample data or placeholder records anywhere.
Then verify:
- Start the dev server and confirm the script tag is present in the
rendered HTML of two different pages.
- Confirm there are no console errors from the script.
- Confirm the script does not block rendering.
Report what you changed and the result of each check.
The last block matters. Asking the agent to verify and report keeps it from declaring success after a single edit.
Framework notes
Next.js (App Router). The agent should put the tag in the root layout, typically using next/script with a lazy or after-interactive strategy so it never blocks hydration. One placement covers every route.
Laravel with Blade or Inertia. The root Blade layout that wraps the app is the right place, just before </body>. For an Inertia app there is still a single root view, so one edit covers everything.
WordPress. A theme's footer template or a small plugin that enqueues the script in the footer. Avoid pasting into individual page templates.
Static sites and plain HTML. The shared footer include. If pages do not share an include, the agent should add it to each page, but that is a sign to introduce a shared include first.
Shopify. Do not touch theme code. Install the app, approve Shopify Billing, and enable the Provedly embed in the theme editor's app embeds panel. The app registers order webhooks for you.
Installation specifics for each path are kept current in /docs.
What to check after the agent is done
Agents produce confident reports, so check a few things yourself.
| Check |
How |
| The tag is in the shared layout, once |
Search the codebase for the snippet; one match |
| It renders on real pages |
View source on two pages, including a deep one |
| It is non-blocking |
Loads after main content; no layout shift |
| Shadow DOM is in place |
Inspect the toast; it lives inside a shadow root |
| Targeting behaves |
Open an excluded page and see nothing |
| Size is as expected |
Network panel shows a small gzipped script |
If the agent added conditional rendering, environment checks, or wrappers you did not ask for, remove them. The script is designed to be dropped in as-is, and Provedly's URL and device targeting handle which pages show what. The targeting rules themselves are discussed in /blog/where-to-show-social-proof-page-targeting.
Getting verified purchases flowing
The script shows proof; it does not create it. For toasts to carry the Verified purchase mark, purchases must arrive through a signed webhook.
For Stripe, that means adding a webhook endpoint in your Stripe dashboard pointing at the address Provedly provides and pasting the signing secret into Provedly. An agent can help here too, but be careful what you hand it: the signing secret is sensitive, and it belongs in Provedly's settings, not in your repository. The exact events to subscribe to are listed in /docs, and the end-to-end path from checkout to toast is in /blog/how-verified-purchase-notifications-work.
Until the first webhook arrives, the widget has nothing verified to show. Resist the temptation to have the agent seed records. Anything added by hand is labelled Sample and anything from a CSV is labelled Imported. Samples on a live site are for previews, and imports are for real past orders, not for filling silence. See /blog/sample-records-labelled-honestly.
Things agents get wrong on this task
A few patterns to watch for, based on how coding agents tend to behave:
- Inventing a site id when the snippet was not provided. Always paste the real snippet.
- Adding the tag to several templates instead of the shared one, producing duplicate loads.
- Wrapping the script in environment checks so it only runs in production, which makes local verification impossible. Provedly's free plan and targeting make it safe to run locally.
- Writing a fake toast component instead of installing the script, because the agent misread the task as "build a notification". The prompt above heads this off by saying to use the snippet exactly.
- Declaring success without rendering a page. Ask for evidence.
None of these are hard to catch if you look. The install itself is one line; the care goes into confirming it.
Frequently asked questions
Does the widget need any configuration in code?
No. All targeting, timing, and appearance settings live in the Provedly dashboard. The code change is the single script tag.
Can the agent set up the Stripe webhook for me?
It can walk you through the Stripe dashboard steps, but the signing secret should be entered into Provedly by you and kept out of the repository and the agent's context where possible.
Will the script affect page performance?
It is about 6 KB gzipped and loads without blocking rendering when placed as described. The Shadow DOM keeps its styles isolated from yours.
Grab your snippet from the dashboard after signing up at /register, and keep /docs open for the framework specifics.