InsightsProof Impact

Set up Proof Impact tracking

Create a conversion event, add the tracking code to your site and send a test, so Proof Impact can link conversions to widget views.

To start measuring with Proof Impact, create a conversion event, add the tracking code to your site and check it with a test. Proof Impact is on Premium and Business, and the workspace owner and the project's Admins set it up.

Before you start, publish the widget you want to measure: the tracking code is made for a published widget. See Publish, update or unpublish a widget. For what Proof Impact measures, see Proof Impact.

Open Proof Impact under Analyze in your project's sidebar.

Create a conversion event

A conversion event is an action you count, such as a completed purchase. Proof Impact refuses events you haven't created, so create each one before your site sends it.

  1. Click the Tracking tab, then Add event under Conversion events. (On a new project, Add your conversion event in the setup checklist of the Overview tab does the same.)
  2. Pick a template in Start from a template, such as Completed purchase or Customer signup, or keep Custom event.
  3. Check the Event key, the name your code sends, such as purchase_completed. It can't be changed later. With Custom event, type the key and a Display label yourself: Create event stays unavailable until both are filled in.
  4. Check the Outcome role. A project's first event starts as the Primary outcome, the one the Overview tab shows by default; make that your most important event.
  5. Choose a Value policy: whether a conversion has to carry an amount.
  6. Under Advanced, choose an Attribution window and an Identity scope, or keep what's there.
  7. Click Create event.

Event settings lists the choices for each of these.

Install the tracking code

Click the Overview tab. Until your first conversion arrives it shows a checklist, Set up Proof Impact; open its step Add the code to your site. Afterwards the same code is under Install and test tracking on the Tracking tab. It's ready-made for HTML / JavaScript, React and Next.js, filled in with your newest published widget and your primary event.

  1. Copy the code for your site, and put the widget on the pages where visitors should see your testimonials.
  2. On the page where the conversion happens, such as your order confirmation page, call trackProofImpactConversion() from the code after the conversion succeeds. That page must load the widget's script too, because window.retestimonial.convert() comes from it.
  3. Replace order.id with your own order or sign-up ID. If the event takes a value, replace order.total with the amount and order.currency with the order's own three-letter currency code, such as USD or EUR. The idempotencyKey must stay the same if the same conversion is sent twice, so it's counted once. A call without one is refused.

If you embed widgets with the iframe code, tick Automatic sizing and Proof Impact under Get code and add its helper script to your site. Views in an iframe without the helper can't be linked to conversions.

To send purchases from your server instead, see Report orders from your server.

Check that it works

In the checklist's last step (or in Install and test tracking), click Send test conversion. It checks your widget's latest view against the event and answers Would it be matched? It's marked Nothing was saved and never appears in the report.

The test needs a view of the widget inside the event's attribution window. Without one it answers No, it would not be matched: open a page that shows the widget, keep it on screen for a second and test again.

Then try it for real: open a page with the widget, scroll until the widget is on screen, and complete a conversion in the same tab. A view counts once at least half of the widget has been on screen for a second.

The checklist marks each step done as it happens: a published widget, a primary event, the widget seen on your site with the conversion code loaded, and the first conversion. While the checklist is open it checks again about every 30 seconds, so a step done on your site ticks without a reload. With that first conversion the checklist gives way to the report.

Event settings

SettingWhat it does
Event keyThe name your code sends. Lowercase letters, numbers and underscores, starting with a letter, up to 64 characters. Dots may separate parts, as in checkout.completed. It can't be changed later.
Display labelThe event's name in the report.
Outcome rolePrimary outcome is the event the Overview tab shows by default and the one Auto-Optimize compares options on. Only one active event can be primary. Secondary milestone is a step on the way, such as a trial start. Guardrail is something you don't want more of, such as a refund; an experiment can watch it as its safety metric.
Value policyValue required refuses a conversion without an amount and currency. No value expected refuses one that has an amount. Value optional accepts both.
Attribution windowHow long before the conversion a widget view still counts. It starts at 4 hours; the other choices are 1 day, 7 days and 30 days.
Identity scopeLeave it on Same-tab session unless you need Consented journey. See Privacy.
Include in reportingOn unless you switch it off. An event with it off still receives conversions, but stays out of the report's totals, and experiments and Auto-Optimize can't use it.

To change these later, see Change an event later.

Report orders from your server

If an order is final only once your server says so, for example after a payment webhook, send it from your server instead of the browser. A refund or a cancellation you send later then corrects the order's value.

Auto-Optimize and experiments decide only on conversions your server sends with the project's server key. Anyone can send a conversion from a browser, so the ones sent with convert() stay in the report but never decide a test.

To send purchases from your server, create a server key in the Developer tab of your project settings. Server keys and signed example, under the tracking code in Proof Impact, goes there. The example on that tab has two parts: your checkout page asks for a token for the order and for the visitor's ID, and your server sends both with the order. The token links the order to the proof its buyer saw, and the visitor's ID puts it in the buyer's experiment group.

The tab opens on Tracking. Under Server keys, click Create key and give the key a name. The key is shown once, so copy it before you close the window. The example appears once the project has an active event whose Value policy is Value optional or Value required.

Each key in the list says who made it ("Made by you", or a teammate's name). A key a teammate made works only while they're an Admin of the project and your plan includes teams: otherwise its requests are refused and the list marks it Paused, and it works again once both are true. It's revoked for good when they leave the team, when you remove them, or when you change their role so they're no longer an Admin of the project: see Remove a teammate. A key the workspace owner made is never paused.

Tracking also shows the convert() call for each of your events under Recording a conversion, and holds the tracking settings described under Privacy.

What happens next

Proof Impact matches new conversions to widget views every minute. If nothing shows up, see Proof Impact shows no data or unmatched conversions.

Was this page helpful?

On this page