Skip to main content
AfterSell → PinterestIntegration guide

Connecting AfterSell to Pinterest

AfterSell works through checkout extensions and post-purchase pages, which puts its offers inside Shopify's sandboxed surfaces where your own scripts cannot reach. Pinterest is a save-now-buy-later platform, which makes its attribution window the loosest of any network here and its conversion data the most delayed. The join between them succeeds or fails on one thing: whether the epik click identifier reaches the AfterSell upsell order before the conversion happens, because Pinterest can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

AfterSell and Pinterest CAPI: the upsell, the event_id and the catalog

Test whether the Pinterest app's Conversions API value includes an accepted AfterSell offer. If you add your own server feed with the final total, reuse the tag's event_id, ideally the Shopify order ID, and never send the upsell as a second checkout. Write _epik to a cart attribute and include upsell product IDs matching your catalog.

The Pinterest app for Shopify can send tag events and server events; check whether yours has the Conversions API side enabled. If it does, it reports the checkout, and the question for AfterSell stores is whether that value includes an offer accepted afterward. Accept an upsell on a test order and compare Pinterest's reported value with the Shopify total before building anything.

If you add your own server feed with the final order total, it has to reuse the event_id the tag's checkout event used, or Pinterest counts the order twice. The Shopify order ID is the natural choice because both sides can know it; a random ID generated in the browser cannot be reproduced on the server. Do not send the upsell as a second checkout event. Pinterest's volumes are small enough that the extra events look like growth rather than a bug. Write the _epik value to a cart attribute on the storefront so it reaches the order, since nothing in the post-purchase surface can read it.

Pinterest is a catalog-driven channel, so the upsell's product IDs matter as much as its value. Include them in the order's content fields, matching the IDs in your Pinterest catalog, or shopping audiences and product-level reporting never learn that the upsell item sells. Confirm current field names in Pinterest's documentation.

AfterSell → Pinterest · what breaks

Why this join usually fails — AfterSell → Pinterest

  1. 01

    The epik click identifier never reaches AfterSell

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  2. 02

    Trying to instrument a sandbox

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  3. 03

    The save-now-buy-later gap

    Pinterest's whole behaviour model is saving something for later. A share of the revenue it genuinely drives arrives months after the click and outside any attribution window, and no build changes that. Say it before anyone sets a target.

  4. 04

    Nothing reconciles afterwards

    Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.

AfterSell → Pinterest · the fix

What working looks like — AfterSell → Pinterest

  • The epik click identifier on every order

  • Conversions arriving in Pinterest

    Conversions appear in Pinterest Ads Manager against the campaign, with the value you sent, and become usable for optimization.

  • Reconciled against the source

AfterSell → Pinterest · architecture

How AfterSell and Pinterest actually connect

  1. 1

    AfterSell holds the truth

    Checkout UI extensions run sandboxed. Nothing you write can observe them, so the only reliable view of what the customer accepted is the order itself.

  2. 2

    Pinterest needs a click to match

    Pinterest matches server events using the click identifier where present and hashed customer information otherwise. Confirm current endpoint and field names against Pinterest's own documentation — its Conversions API has been through more than one revision.

  3. 3

    The identifier is the bridge

    The epik click identifier, captured at the visit and carried into the AfterSell upsell order.

  4. 4

    The event source decides reliability

    Send the final order total from the webhook, with upsell line items identified.

  5. 5

    Deduplication at the destination

    Pinterest deduplicates on event_id, so the tag and the server event must carry the same value for the same conversion. Pinterest volumes are often low enough that a doubling reads as a good week rather than a bug, which is why this needs testing deliberately rather than assuming.

AfterSell → Pinterest · normal or broken

Working vs. broken, side by side — AfterSell → Pinterest

Normal, not a fault

  • The epik click identifier present on the order

  • Sent from the Shopify order webhook

  • Deduplicated correctly

    Pinterest deduplicates on event_id, so the tag and the server event must carry the same value for the same conversion. Pinterest volumes are often low enough that a doubling reads as a good week rather than a bug, which is why this needs testing deliberately rather than assuming.

  • Reconciles with the source

Actually broken

  • The epik click identifier missing on most records

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  • Sent from the browser

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  • Counted twice, or not at all

    Pinterest's whole behaviour model is saving something for later. A share of the revenue it genuinely drives arrives months after the click and outside any attribution window, and no build changes that. Say it before anyone sets a target.

  • Nobody has reconciled it

AfterSell → Pinterest · diagnose

Diagnostic order — AfterSell → Pinterest

  1. 01

    Count orders carrying the epik click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm the conversion is sourced from the order, not from a page

    On modern Shopify checkout there is no supported page-based option left, so this is the only correct architecture.

  4. 04

    Check the event delivery and match reporting in Pinterest Ads Manager

    Not the API response code. A 200 means Pinterest accepted the payload, not that it matched it to a click.

  5. 05

    Read the match rate, not the success message

    Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.

AfterSell → Pinterest · prove

How it gets proven — AfterSell → Pinterest

Source of truth

The final Shopify order total, read from the order record.

  • The epik click identifier confirmed present on a live order.
  • Deduplication confirmed on a real conversion, and the attribution window your reporting uses stated explicitly.
  • Final order totals reconciled from the webhook against imported conversions.

AfterSell → Pinterest · free audit

What we check in the free audit

  • Count orders carrying the epik click identifier
  • Follow one real conversion end to end
  • Confirm the conversion is sourced from the order, not from a page
  • Check the event delivery and match reporting in Pinterest Ads Manager
  • Read the match rate, not the success message

Checked against

The final Shopify order total, read from the order record.

Get my free conversion tracking audit

Free30 minutesNo obligation

AfterSell → Pinterest · when not to buy

When you don't need this — AfterSell → Pinterest

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the epik click identifier.
  • If your conversions already come from the order webhook, checkout extensions change nothing for you.
  • If Pinterest is a small test line on your media plan, the Conversions API is more work than the signal is worth this quarter.

AfterSell → Pinterest · what we deliver

What gets built — AfterSell → Pinterest

  • Identifier capture into AfterSell

    Do not try to instrument the checkout surface. Read the order server-side, which is the supported and more reliable path anyway.

  • Event source: the Shopify order webhook

    Send the final order total from the webhook, with upsell line items identified.

  • Dispatch to Pinterest

    Server events to the Pinterest Conversions API with the click identifier, hashed customer data and a matched event_id.

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total, read from the order record.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AfterSell → Pinterest questions, answered

Test it: place an order, accept the upsell, and compare Pinterest's value with Shopify's order total. If they differ, a server event from the final order fills the gap.

Free · 30 min

Get AfterSell and Pinterest joined properly

Free30 minutesNo obligation