Skip to content
All articles

Trust & compliance

Social proof widgets and cookie consent

What a social proof widget typically stores in the browser, why it stores it, and how to think about cookie banners and consent for counters and attribution.

Provedly team··6 min read

Most social proof widgets store a small amount of data in the visitor's browser: usually a random visitor id, kept in a cookie or in local storage, plus a few short-lived values such as how many notifications this visit has already shown. The id lets the tool count distinct people on a page for a live counter and connect a later order to an earlier notification for attribution. Whether that needs consent through your cookie banner depends on the privacy rules that apply to your store and on what the id is used for, so the useful first step is to find out exactly what your widget stores and why.

We are not lawyers and this is not legal advice. Cookie and privacy rules differ between places, they are interpreted by regulators and courts over time, and the answer for your store depends on your setup. Use this post to gather the facts, then decide with someone qualified.

What a widget typically stores

A social proof script usually needs to remember a few things between page loads. Here is a typical list, using Provedly's script as the concrete example, since we can describe our own exactly.

Name Where Lifetime What it is for
pw_vid Local storage Until cleared A random visitor id, used to count distinct visitors and keep A/B versions consistent
pv_vid First-party cookie on your domain One year The same random id, so your own checkout code can pass it on for attribution
Per-visit counters Session storage Until the tab closes How many notifications this visit has shown, and whether the visitor closed them
Last shown record Local storage Until cleared So the next page does not open with the same notification
Bar state Local storage Until cleared When a per-visitor evergreen timer started, or that a bar was closed

The visitor id is a random string generated in the browser. It is not derived from a name, email, IP address or device fingerprint. The widget's own requests to our servers are sent without cookies, and the cookie lives on your domain, not on ours.

Other tools store different things. Some set third-party cookies, some add analytics or advertising pixels, and some store nothing at all. Check yours: open your store in a private window, open the browser's developer tools, and look at cookies and local storage before and after the widget loads.

Why the id exists

It is worth being specific about purpose, because purpose is usually what privacy rules care about.

Counting real visitors. A live counter like "4 people are viewing this" needs to tell four people apart from one person with four tabs. A random id per browser does that. Without it, the number is either inflated or invented.

Keeping the experience consistent. If you test two versions of a notification, each visitor should keep seeing the same one. The id keeps that assignment stable.

Attribution. To say "this order came from a visitor who saw a notification", the tool has to link the order to the earlier visit. The id is passed along with the order (on Shopify, as a cart attribute) and matched.

Frequency caps. Session storage remembers how many notifications a visitor has already seen, so they are not shown more than you allow.

Some of these are closer to "making the feature work" and some are closer to "measuring results". That distinction often matters when deciding about consent.

Thinking about consent

Rules in some places, including the EU and the UK, generally require consent before storing or reading information on a visitor's device, with exceptions for storage that is strictly necessary for a service the visitor asked for. Where a social proof widget falls is not always obvious, and reasonable people disagree. Questions to work through with your adviser:

  1. Is the visitor asking for this? A visitor browsing a product did not ask for a sales notification, which makes a "strictly necessary" argument harder.
  2. Which purposes need the id? A live counter and attribution use the id in different ways. You might treat them differently.
  3. Does it identify anyone? A random id is not a name, but privacy rules often treat online identifiers as personal data anyway.
  4. Who receives it? Here, the id goes to the widget provider to count and match. Your privacy policy should name that.
  5. How long is it kept? Shorter is easier to justify.

A cautious approach is to list the widget in your cookie banner under a category such as analytics or functional, and load the script only after the visitor agrees to that category. That costs you the notifications, counter and attribution for visitors who decline, which is a fair trade if you want to be safe.

Setting it up with a consent banner

Most consent tools can hold back a script until consent is given. The general steps:

  1. Add the widget to your consent tool's list, with a short description such as "Shows recent purchases and how many people are viewing a page. Stores a random visitor id."
  2. Choose a category. Analytics or functional are the usual choices; avoid putting it under marketing unless your tool shares data for advertising.
  3. Block the script until consent. Your consent tool, tag manager or theme usually has a way to do this. Installing through Google Tag Manager shows one route.
  4. Test both paths. Decline and check that no cookie or local storage entry appears. Accept and check that the widget loads.
  5. Update your privacy policy with what the widget stores, why, and for how long.

If you show buyer names, the privacy question also covers the people in the notifications, not only the visitors. Showing buyer names in sales notifications covers that side.

Doing this with Provedly

Provedly installs with one site script tag, so a consent tool can block or release it as a single item. The table above lists what the script stores. The live counter uses the visitor id to count distinct visitors on a page in the last 90 seconds, and proof-assisted orders match the id against orders in the 30 days after a visitor saw a notification; nothing is modelled. If storage is blocked by the browser, the script carries on without it, but counts and attribution become less accurate.

Frequently asked questions

Does a social proof widget always need cookie consent?

It depends on the rules where your visitors are, what the widget stores, and why. Many stores in places with strict cookie rules choose to ask. We are not lawyers; check with an adviser.

What happens to my notifications if a visitor declines?

If you block the script until consent, that visitor sees no notifications, bars or live counter, and their visit is not counted or used for attribution. Your other visitors are unaffected.

Is local storage treated differently from cookies?

Often not. Cookie rules in some places cover any storage on the visitor's device, not only cookies. Treat both the same when you list what your site stores.

Want a widget whose storage you can list in one table? Create a free account.

cookie consentprivacygdprcookies

Get new articles by email

Honest social proof, verified purchases and what actually moves conversion. A few emails a month at most; leave with one click.

We email you once to confirm. Your address is used only for this newsletter; see the privacy policy.

Show proof you can stand behind.

Free plan, one site, 2,000 impressions a month, verified purchases included. The badge on the free plan links to your verification page, which is the point.