Skip to main content
Purchase fires on refreshDiagnosis and fix

Why does my purchase event fire again when the customer refreshes?

A purchase event tied to the thank-you page fires every time that page loads, and customers load it more than once: they refresh, they navigate back to it, they bookmark the receipt and return days later, and some payment providers redirect through it twice. Client-side guards — a flag in session storage, a cookie, a check on the URL — reduce the problem without solving it, because they all depend on the same browser that is being unreliable. The reliable fix is to stop firing on a page the customer can revisit and start firing from the order record, once, server-side.

Free30 minutesNo obligation

Purchase fires on refresh · what breaks

What this looks like when it's happening to you — Purchase fires on refresh

  1. 01

    Conversions slightly higher than orders, with no clean ratio

    Not double, just consistently more. The signature of refresh rather than a duplicate tag.

  2. 02

    A handful of orders with several conversions each

    Visible if you look per order rather than at totals.

  3. 03

    Duplicates concentrated on one payment method

    Some providers redirect through the confirmation page more than once.

  4. 04

    Spikes long after the order date

    Someone opened a bookmarked receipt.

Purchase fires on refresh · the fix

What changes once it's fixed — Purchase fires on refresh

  • One conversion per order, permanently

    Regardless of how many times the confirmation page is loaded, by whom, or when.

  • Fired from the order record

    Server-side, keyed on the order, so revisiting a page cannot produce a second event.

  • A stable deduplication key everywhere

    The order ID, used identically at every destination, so any duplicate that does slip through is caught.

Purchase fires on refresh · architecture

Why your conversion data was wrong in the first place — Purchase fires on refresh

Fixing this specific fault is worth doing. But it is worth understanding why it happened, because the same underlying weakness produces a different symptom every few months — and the reason your conversion data is wrong is almost never the tag itself.

  1. 1

    Your conversion depends on a browser that is being restricted on purpose

    A browser-side tag has to survive the page loading, the visitor staying, the script executing and the request leaving. Every one of those is now contested. The order in your database is certain; the browser event reporting it is not, and that gap is where wrong numbers come from.

  2. 2

    Safari caps the cookie your attribution depends on

    Intelligent Tracking Prevention limits cookies written by JavaScript to seven days, whatever expiry you set. Any customer who takes longer than a week to decide comes back as a stranger, so the sale is recorded and credited to nobody. A cookie your own server writes in an HTTP response is not subject to that cap — which is the single largest practical difference between browser-side and first-party server-side tracking.

  3. 3

    Ad blockers remove the tag before it can run

    A blocked pixel does not error, retry or warn anyone. The visitor buys, the order lands in your store, and no platform ever hears about it. First-party events sent from your own subdomain aren't filtered the same way, because they are not a third-party request.

  4. 4

    Consent banners stop tags, sometimes when they didn't need to

    Where consent is genuinely required, losing the event is correct. What is not correct — and what we find repeatedly on US-majority accounts — is an EU-style prior-consent banner applied to every visitor, discarding conversions no law asked you to discard. A server container enforces the real decision at the container rather than hoping each vendor script honours a flag.

  5. 5

    The checkout can end somewhere your tag isn't

    Wallets and hosted payment pages can be abandoned after the money moves. The customer paid; the confirmation page never rendered; the browser event never fired. Sending the purchase from the order record instead means the conversion arrives whether or not anyone came back to your site.

  6. 6

    What that adds up to

    Each of these is a separate route to purchase fires on refresh, and they compound. First-party server-side tracking doesn't patch them one at a time — it moves the money event off the browser entirely, so the order in your backend is what gets reported. That is why we reconcile against your own order records and put 95%+ accuracy in writing: with the event sourced from the order, the number is checkable rather than hopeful.

Purchase fires on refresh · normal or broken

Some of this is supposed to happen — Purchase fires on refresh

Half the time nothing is broken and the number is being read wrong. Knowing which is which stops you paying to fix something that was never a fault.

Normal, not a fault

  • Working

    One conversion per order, fired from the order record, with the order ID as the deduplication key everywhere.

  • Broken

    Conversions exceed orders by an unstable margin that shifts with customer behavior and payment mix.

  • Partly guarded

    A session-storage flag stops the immediate refresh and nothing else — bookmarks, other devices and private windows all still fire.

Actually broken

  • The conversion tied to thank-you page load

    The default setup nearly everywhere, and the root of the whole problem.

  • Payment providers redirecting through the page twice

    Some do, particularly on 3-D Secure and wallet flows. It looks like customer behavior and is not.

  • Customers bookmarking or re-opening the receipt

    Entirely normal behavior that a load-based trigger treats as a new purchase.

  • Client-side guards that do not survive

    Session storage clears, cookies get blocked, and private browsing starts fresh every time.

  • Back-navigation restoring the page from cache

    In some browsers this re-runs scripts, and in others it does not, which makes the bug intermittent and hard to trust.

Purchase fires on refresh · diagnose

How we find out why does my purchase event fire again when the customer refreshes

Always in this order. Each step eliminates a class of cause, so by the last one there is usually a single explanation standing.

  1. 01

    Place a test order and refresh the thank-you page three times

    Count the events. This is the entire diagnosis and it takes two minutes.

  2. 02

    Compare conversions to orders per order, not on totals

    Totals hide the pattern; a per-order count makes it obvious immediately.

  3. 03

    Look for orders with more than one conversion, and check their payment method

    A concentration on one method points at the provider's redirect rather than at customers.

  4. 04

    Check whether the order ID is in the confirmation URL

    If it is, that URL is a permanent re-trigger and anyone with the link holds one.

  5. 05

    Test back-navigation as well as refresh

    They behave differently and one can be broken while the other is fine.

  6. 06

    Check whether a deduplication key is being sent at all

    If no destination has an ID to deduplicate on, none of them can protect you.

Purchase fires on refresh · prove

How we prove it's actually fixed — Purchase fires on refresh

The tag firing again proves the tag fires. These prove the numbers are right.

Source of truth

Your store's order records, compared per order rather than on summed totals

  • A test order with the thank-you page refreshed three times, producing exactly one conversion.
  • Conversions reconciled per order against the store over a closed day, with no order carrying more than one.
  • Reconciled against your store's order records, compared per order rather than on summed totals for a fully closed window, matched on ID rather than on totals.
  • No record counted twice, checked across the whole window rather than spot-checked.
  • The same check repeated 30 days later, because a fix that holds once and drifts is the harder failure to catch.

Purchase fires on refresh · free audit

What we check in the free audit

  • Place a test order and refresh the thank-you page three times
  • Compare conversions to orders per order, not on totals
  • Look for orders with more than one conversion, and check their payment method
  • Check whether the order ID is in the confirmation URL
  • Test back-navigation as well as refresh
  • Check whether a deduplication key is being sent at all

Checked against

Your store's order records, compared per order rather than on summed totals

Get my free conversion tracking audit

Free30 minutesNo obligation

Purchase fires on refresh · when not to buy

When you don't need us for this — Purchase fires on refresh

Most of these you can do yourself, and we would rather you did.

  • Place a test order and refresh the confirmation page three times while watching your analytics debug view. Count the events.
  • Look for orders with more than one conversion in the last week, then check what payment method they used.
  • Check whether your confirmation URL contains the order ID. If it does, that link is a re-triggerable conversion.

Purchase fires on refresh · what we deliver

What we do about it — Purchase fires on refresh

  • Send the purchase from the order webhook

    The real fix. An order can only be paid once; a page can be loaded forever.

  • Use the order ID as the deduplication key at every destination

    Stable, unique and already exists. Do not invent an ID when the order has one.

  • If you must stay browser-side, guard on the order ID rather than a boolean

    A per-order marker survives one refresh. A generic already-fired flag breaks the customer's next order.

  • Stop passing the order ID in the URL where you can

    A bookmarkable receipt URL containing the order is a permanently re-triggerable conversion.

Pricing

Pick the package that fits your ad spend

Browser-side starter

$400One-time fee · lifetime ownership

We fix the fault in your existing browser-side setup and verify it on a live transaction. Honest disclosure: this repairs what you have, it does not make it durable. If you spend $1K+/month on paid media, the fault will recur the next time Safari, a consent banner or a checkout change moves under you — the server-side tier is what stops that.

  • Root cause found and fixed, not worked around
  • Verified on a live transaction, not in preview
  • Reconciled against your own order records
  • Written handover documenting what changed and why
Fix what I have

1st-party server-side

Recommended

$800One-time fee · most popular

The tier that removes the whole class of failure rather than this instance of it. Your money events stop depending on the browser: they are sent from your order records through a first-party server container on your own subdomain, so iOS, ad blockers, consent banners and interrupted payment redirects can no longer take them away. Built in 2–4 days. You own the stack outright — no monthly SaaS.

  • First-party server container on your own subdomain
  • Purchases sent from your order records, not the browser
  • Meta, Google, TikTok, Microsoft and LinkedIn all fed server-side
  • Deduplicated on a shared event ID, verified at every destination
  • First-party cookies beyond Safari's 7-day cap on JavaScript-set cookies
  • 95%+ conversion accuracy and 8+ Meta EMQ, guaranteed in writing
Rebuild it server-side

Full 1st-party stack

$1,800One-time fee · lifetime ownership

Every paid-media channel server-side, end to end, plus the offline loop. For advertisers whose spend makes an attribution leak more expensive than the build. Pay once, own everything.

  • Everything in 1st-party server-side
  • Pinterest, Snapchat, Reddit and LinkedIn CAPI
  • CRM and offline conversion loop, so closed revenue reaches bidding
  • Refunds and cancellations reversed at every destination
  • Klaviyo identity stitching, BigQuery and Looker Studio
  • Monitoring, so the next break surfaces in days rather than a quarter
Get the full stack

FAQ

Purchase fires on refresh questions, answered

It stops the immediate refresh in the same tab and nothing else. It does not survive a bookmark opened next week, a different device, a private window, or a browser that clears storage. It is a reasonable stopgap and it should not be mistaken for a fix.

Free · 30 min

Get purchase fires on refresh diagnosed properly

Free30 minutesNo obligation