NOTE-067 · FIELD NOTE FILED 25 NOV 2026 · REVISED 25 NOV 2026 F-101 F-302 F-204
Pinterest tag and Conversions API for an online store: what the tag sends, what the API adds and how to deduplicate.
ABSTRACT — How to set up Pinterest conversion tracking on an online store so a purchase isn't counted twice: what the Pinterest tag (pixel) sends from the browser, what the Conversions API adds from the store's back end, the Shopify app, Google Tag Manager, consent, and the event_id rule Pinterest deduplicates on.
Baris Asa, tracking consultant, London · Last checked: November 2026
If Pinterest shows more purchases than your store, place one real order. Counted twice in Pinterest’s events: a tracking fault. Counted once: nothing is doubling, and the gap is how Pinterest credits sales. The set-up that holds: the Pinterest tag (often called the Pinterest pixel) sends the checkout from the browser, the Conversions API sends the same checkout from your store’s back end, and both carry the sameevent_id, such as the order number. Pinterest keeps the first copy and drops the other. On Shopify, Pinterest’s app installs both.
The set-up, in order:
- Pick one route: the Pinterest for Shopify app, the Pinterest Tag template in Google Tag Manager, Pinterest’s Conversions API tag in server-side GTM, or code.
- Base code on every page, firing only after marketing consent.
- Checkout on the order confirmation, with
value,currency,order_idandevent_id. - The same checkout through the Conversions API, same
event_id, sent in real time. - Place a real order and run the checks below.
Every Pinterest statement below is from Pinterest’s own help centre and developer documentation, listed at the end. Where I’m giving my own judgement, I say so.
Check yours first
Three checks, in your Pinterest business account. None needs a developer.
- One order, one event. Place a real order, then open Ads, Conversions, Events Overview, and look at the checkout event: it shows the checkouts Pinterest received, after deduplication. In my experience it isn’t limited to sales credited to ads. One order should add one. Pinterest doesn’t publish a delay; I check the next day.
- Event ID coverage. In Events Overview, click the checkout event, then the Deduplication tab. It shows how many events carry an
event_idand flags any event type below Pinterest’s threshold. A flag means some events can’t be matched. - A second Pinterest tag. Look for a hand-pasted base code in the theme, a
pintrkline in Shopify’s Settings, Customer events (custom pixels), or another app’s Pinterest tag, beside Pinterest’s own app. It’s the first thing I look for.
If one of the three fails, that’s what I fix in a tracking audit. If all three pass, the difference is attribution: next section.
Pinterest conversions counted twice, or attributed differently?
Two comparisons get mixed up.
- Pinterest’s checkout events against your store’s orders, same days. This is the double-counting test. A missing or mismatched
event_idpushes Pinterest’s count above the orders, up to double when the tag and the API both send every order (F-101 ). With the tag alone, fewer events than orders is normal: declined cookies, blocked scripts. With the API also sending, a large shortfall points to the API side or to consent settings. - Pinterest Ads Manager against the Pinterest report inside Shopify. This is attribution, not a fault. Pinterest’s help page on Shopify app reporting says the app reports last-click conversions only (a click, then a purchase without leaving), and doesn’t capture the view-attributed or cross-device conversions Pinterest reports. Ads Manager will usually read higher.
Neither number is wrong. They answer different questions. Fix the first one; explain the second one.
Who this is for
An online store, or the agency running its Pinterest ads, that wants Pinterest’s purchase count to line up with the store’s orders. The sections from here down are for whoever implements it: send them this page.
What the Pinterest tag sends
The tag has two parts.
- The base code is the snippet on every page, between
<head>and</head>, once per page. It loads Pinterest’s script and sets cookies on your own domain (first-party cookies); itspintrk('page')line records a page visit. You copy it, with your tag ID, from your Pinterest business account under Conversions, then Tag manager. - Event codes are the extra lines that fire on actions. Pinterest documents 20 event types (19 standard plus a custom event). For a store the core four are page visit, view category, add to cart and checkout. The base code runs first.
The checkout event is the purchase. On the order confirmation page:
pintrk('track', 'checkout', {
event_id: 'order-100245',
value: 66.95,
order_quantity: 2,
currency: 'GBP',
order_id: '100245'
});
order_idis required for Pinterest’s conversion analysis reporting.- Currency is required on add to cart and checkout for catalogue sales (ads built from your product feed).
- Product detail goes in
line_items(product ID, name, price, quantity). The product ID is required for catalogue sales and dynamic retargeting (ads showing shoppers the products they viewed).
Enhanced match takes details a shopper has typed into your site’s forms (email, name, phone and similar), hashes them with SHA-256 (scrambled one way) in the browser and sends the hash. It’s on by default for new installs; the toggle sits under Conversions, then Tag manager.
What the tag can’t see: anything that never reaches the browser. A shopper who closes the tab before the confirmation page loads, or a blocked script. That’s the gap the API is for.
What the Conversions API adds
The Conversions API sends events from your store’s back end to Pinterest. On Shopify, Pinterest’s app does this for you; elsewhere it’s a server-side tag or a developer’s code. Pinterest recommends a dual set-up: the same events through the API that you send through the tag.
| Field | What to send (website) |
|---|---|
event_name | checkout for a purchase |
event_id | The same ID the tag sent |
event_time | Time of the order, in seconds |
action_source | web |
user_data | Hashed email, or IP plus browser details |
custom_data | value, currency, order_id, contents |
The details that decide whether the data is usable:
- Timing. Real time, or within an hour at most. That hour is Pinterest’s freshness ask for API events; the 48 hours below is how long it looks for a duplicate.
- Identifiers. Email is lower-cased and SHA-256 hashed before sending; so are phone, name and the other personal fields. IP address and user agent (the browser’s self-description) go unhashed. Apps can use hashed mobile ad IDs instead.
- The click ID. Pinterest asks for the
_epikcookie, sent asclick_id, rather than theepikparameter in the landing URL, because the cookie still works when the parameter is missing or removed. My experience: the cookie only exists if the tag loaded on the landing page, so a redirect that stripsepikfirst (F-204 ), or a declined banner, leaves nothing to send. - Value. Pinterest’s API guide asks for the pre-tax, pre-shipping total, always with a currency. My view: send the same figure from the tag, or the two sides disagree on revenue for the same order (F-302 ).
- Access. A conversion access token, made under Conversions, then Conversions API, then Set up API, and shown beside your ad account ID.
- Testing. Add
test=trueto the request. Test events go to a sandbox, aren’t used for reporting or optimisation, and show under Conversions, then Test events.
What makes Pinterest’s signal stronger
Pinterest grades this itself. The event quality score, under Conversions, then Event quality, rates a set-up Good, Fair or Needs Improvement on three things: the customer information sent, the event details, and duplicate events. Among the common attributes of a Good score, Pinterest lists three customer identifiers, product and value details, and an overlap score above 90% for all events. Pinterest doesn’t define overlap.
What moves it:
- The tag and the API both running, sending the same events.
- A matching
event_idon every event, not just purchases. - A hashed email plus the
_epikclick ID on the API events. - Value and currency on every checkout.
Pinterest gives you the tools: its app, GTM template or server-side tag to send the events, then Event quality, the Deduplication tab and Test events to check them. The work sits with whoever owns the tags and the server events. Bids, audiences and creative stay with the people running the campaigns.
How to deduplicate the Pinterest tag and Conversions API
Pass event_id and event_name from every source, with the event_id identical for the same event. Pinterest keeps the first event it captures and removes duplicates within 48 hours.
- Pick the ID. For a purchase, the order number: the confirmation page and the server both know it, so nothing has to pass between them.
- Match the event names. Checkout is
pintrk('track', 'checkout', …)on the tag andevent_name: "checkout"on the API. Add to cart is written differently on each side:pintrk('track', 'addtocart', …)on the tag,"add_to_cart"on the API. Pinterest’s developer guide pairs the names but writes tag names in CamelCase (AddToCart); the help centre’s tag code uses lowercaseaddtocart. - Every event, not just purchases. For add to cart, generate an ID in the browser and send the same one from the server.
- Check it in the Deduplication tab (check 2 above): event ID coverage per event type, and the rate of duplicates removed. Pinterest’s page says most, if not all, events need an
event_id.
The key differs by platform:
| Platform | Dedup key | Filed |
|---|---|---|
event_id, 48 hours, first kept | This note | |
| Meta | event_id | Meta CAPI dedup check |
| TikTok | event_id | TikTok vs Shopify |
| GA4, Google Ads | transaction_id | GA4 purchase fires twice |
Which route fits your store
| Store | Route | Watch for |
|---|---|---|
| Shopify | Pinterest for Shopify app | An older tag left in |
| Any, GTM in place | GTM “Pinterest Tag” template | Event ID field empty |
| Server-side GTM running | Pinterest Conversions API Tag | Same ID as the browser |
| Custom build | Tag code plus direct API | Developer time |
Shopify:
- The app claims your website, connects your product feed and installs the Pinterest tag and the Conversions API.
- Pinterest recommends removing any tag added by hand or through another third party first: base, checkout and add-to-cart codes.
- It doesn’t recommend installing the tag by hand on Shopify at all.
- Pinterest doesn’t say why. My reading: a second tag sends its own checkout without the app’s event ID, so deduplication has nothing to match and the order counts twice.
What each Shopify tracking app sends is filed in Shopify tracking apps: what each one sends.
Google Tag Manager:
- Add a tag, search “Pinterest”, pick Pinterest Tag.
- One tag for the base code on all pages, one per event. Tag Sequencing (a GTM setting) makes the base tag fire first.
- The External Event ID field should be generated per event and match the Conversions API
event_id. - If an older custom parameter called
event_idis also set, the custom parameter wins. - The template can read line items from a GA4 ecommerce dataLayer (the data your site already passes to GA4), so it doesn’t need a second push for products. Value, currency and External Event ID still have to be mapped in the tag.
Server-side GTM (a tag manager running on a server you pay for):
- Pinterest documents a Pinterest Conversions API Tag for the server container, fed by the GA4 tag in the web container.
- It maps GA4 events to Pinterest’s:
purchasetocheckout,add_to_carttoadd_to_cart,page_viewtopage_visit. - It takes your ad account ID and access token, and hashes personal data on the server.
Who keeps a server container running is filed in Server-side GTM hosting: who maintains what.
Consent in the UK
Pinterest says that in the EU you’re required to get legally compliant consent before sending any events. Its base code takes pintrk('setconsent', false): no events go to Pinterest for that shopper, and the tag’s first-party cookies and session storage are deleted. Pinterest’s page doesn’t mention the UK.
The tag sets advertising cookies, so here I treat it as a marketing tag: in Google Tag Manager it fires only when the banner’s marketing consent is granted. Then test both ways:
- Decline: no requests to
ct.pinterest.comin the browser’s network tab. - Accept: they appear.
That’s my practice, not legal advice. Pinterest’s Limited Data Processing flag is for US state privacy laws, not UK consent. What proper wiring buys is a count of consented shoppers you can defend.
If an agency runs the Pinterest account
The tag, the banner, the order data and the server events each sit with a different person, which is why this breaks.
- The agency gives: Ads Manager access, GTM or Shopify access, and the name of whoever owns the server or app set-up.
- It gets back: one record per event (below) and a Pinterest vs store orders comparison it can rerun.
- It keeps: campaigns, bids, creative and the client conversation.
What goes on record
The format I file for the purchase event, with the test order that proved it. Example:
Event: checkout (purchase)
Route: Pinterest for Shopify app
Other tags: none found
Value: <pre-tax, pre-shipping>
Currency: GBP, on every event
Order ID: sent on tag and API
Event ID: order number, both sides
Coverage: Dedup tab, <date>
Consent: tag waits for marketing
Click ID: _epik sent as click_id
Test order: counted once
The wider list of what a store audit checks is in the ecommerce tracking audit checklist.
A tracking audit is where I do this. The store gives Ads Manager access and Shopify or GTM access; it gets back the record above, the fixes, and a Pinterest vs orders comparison it can rerun.
Sources
Pinterest Business Help, read on 25 November 2026:
- Add the base code to your website (every page, in the head; first-party cookies; consent before sending events in the EU;
setconsentdeletes first-party cookies and session storage) - Add event codes (20 event types including custom;
checkoutandaddtocartcode; checkout parameters;order_idrequired for conversion analysis; currency and product ID for catalogue sales and dynamic retargeting) - Set up the Pinterest tag with Google Tag Manager (Pinterest Tag template; Tag Sequencing; External Event ID; custom parameter precedence; GA4 dataLayer; Limited Data Processing)
- Enable automatic enhanced match (form-field data, SHA-256 in the browser, on by default for new installs)
- Enable optional enhanced match
- Connect your Shopify store to your account (the app installs the tag and the Conversions API; remove other tags first; manual install not recommended)
- Shopify app reporting (last-click only; view-attributed and cross-device conversions not captured)
- The Pinterest Conversions API and Getting started with the Conversions API (dual integration; event_id; real time; Limited Data Processing for state privacy laws)
- Validating your set-up with event testing (Test events; Events Overview, Deduplication; event ID coverage; duplicates removed)
- Event quality score (Good, Fair, Needs Improvement; customer information, event insights, duplicate events; common attributes of Good)
Pinterest Developers, read on 25 November 2026:
- Track conversions in the API (event names and pairing; required fields; user_data minimum; hashing;
_epikcookie asclick_id; pre-tax, pre-shipping value; access token;test=true; deduplication: first event kept, duplicates removed within 48 hours) - Track conversions with the Pinterest tag (base code once per page, before event code)
- Integrate third-party tracking tools (server-side GTM Pinterest Conversions API Tag; GA4 to Pinterest event mapping; server-side hashing)