---
title: "Pinterest Conversions API Best Practices"
url: "https://samarthanalytics.com/guides/pinterest-conversions-api-best-practices"
published: "2026-04-23"
updated: "2026-04-24"
category: "Conversion Tracking"
tags: "pinterest, conversions-api, server-side, ecommerce, shopping"
author: "Samarth Analytics"
---

# Pinterest Conversions API Best Practices

> We recommend a redundant architecture pairing the Pinterest Tag with the Conversions API to capture signals lost to browser tracking restrictions and signal loss. To ensure data accuracy, you must implement rigorous event_id deduplication, normalized SHA-256 user data hashing, and persistent epik click ID tracking. This technical setup stabilizes attribution and provides the high-fidelity data Pinterest needs to optimize for conversions and improve your overall ROAS.

- Adopt a redundant tracking architecture using both the Pinterest Tag and the Conversions API to recover signals lost to ITP and iOS privacy restrictions.
  - Synchronize the `event_id` across browser and server payloads to ensure Pinterest can perform accurate 1:1 deduplication.
  - Focus on high-fidelity Enhanced Match by sending normalized, SHA-256 hashed user data such as email and phone numbers.
  - Capture and persist the `epik` click identifier to maintain attribution for users on cookieless browsers.
  - Align your Conversions API `content_ids` with your Pinterest Shopping catalog to enable high-performance dynamic retargeting.

## Why Pinterest's commerce intent data is worth protecting
Pinterest is distinct from other social platforms because of the mindset of its users. People don't go to Pinterest to passively scroll through a feed. They go there to plan. Whether it is a kitchen remodel, a wedding, or a seasonal wardrobe refresh, the user is in a state of high commercial intent. This makes Pinterest data incredibly valuable for growth-stage B2B and B2C companies. However, we have seen that relying exclusively on browser-side tracking via the Pinterest Tag is no longer sufficient. Between ad blockers and Apple's Intelligent Tracking Prevention, we typically see a **signal loss** of 30% or more in standard browser-based setups.

When you lose that 30% of your data, you aren't just losing reporting accuracy. You are starving the Pinterest optimization algorithm. The platform needs a steady stream of conversion data to identify which users are most likely to convert. Without a server-side backup, your cost per acquisition will inevitably rise because the algorithm is working with a partial picture. Implementing Pinterest Conversions API best practices ensures that even when a browser blocks the Pinterest Tag, your server communicates the success event directly to Pinterest. This stabilizes your attribution windows and gives you the data density required to scale spend confidently.

## Tag plus Conversions API: the redundancy architecture
We always recommend a hybrid approach where the Pinterest Tag and the Conversions API work in tandem. This is often called a redundant architecture. The browser-based Pinterest Tag remains useful because it can access first-party cookies and local storage that the server cannot easily reach. Meanwhile, the Conversions API acts as the source of truth for the bottom of the funnel, capturing events that the browser might miss due to connectivity issues or script blocking.

In this model, both the browser and the server fire the same event. For example, when a purchase occurs, the Pinterest Tag fires a `checkout` event from the user's browser, and your server simultaneously sends a `checkout` event via the API. Pinterest's backend then looks at these incoming signals and merges them based on a unique identifier. To do this, your server-side payload must be structured as a POST request to the endpoint `https://api.pinterest.com/v5/ad_accounts/AD_ACCOUNT_ID/events`. The payload includes `user_data` for identification and `custom_data` for transaction context.

```json
{
  "data": [
    {
      "event_name": "checkout",
      "event_time": 1713862800,
      "action_source": "app_android",
      "event_id": "order_98765_prod",
      "user_data": {
        "em": ["743849767..."],
        "ph": ["9834759..."],
        "fn": ["38947..."],
        "ln": ["94857..."],
        "ge": ["f"],
        "client_ip_address": "192.168.1.1",
        "client_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
        "click_id": "epik_example_123"
      },
      "custom_data": {
        "currency": "USD",
        "value": "125.00",
        "order_id": "order_98765",
        "content_ids": ["sku_001", "sku_002"],
        "num_items": 2
      }
    }
  ]
}
```

## The event\_id contract and how Pinterest handles deduplication
The key to a successful redundant setup is the `event_id`. This is a unique string that serves as the contract between the browser and the server. If the Pinterest Tag sends an event with `event_id: "xyz"` and the Conversions API sends an event with `event_id: "xyz"`, Pinterest understands these are the same conversion and deduplicates them. If you fail to send a matching ID, or if you omit the ID entirely, Pinterest will record two conversions for a single purchase. We've seen this lead to reporting where ROAS is artificially doubled, which makes it impossible to manage your budget effectively.

For `checkout` events, we recommend using the transaction ID or order number as the `event_id`. For upper-funnel events like `page_visit` or `add_to_cart`, you will need to generate a unique UUID in the browser and pass that same value to your server-side tracking layer. Pinterest allows for a 48-hour deduplication window, meaning as long as the two events arrive within two days of each other with the same ID, they will be merged. In production, we typically aim to have both events sent within seconds to ensure the most accurate real-time reporting in the Ads Manager.

## Enhanced Match: what hashed user\_data fields matter most
Enhanced Match is the technology Pinterest uses to link a conversion back to a specific Pinterest user when a cookie isn't available. This is the primary way we combat the effects of Pinterest conversion attribution iOS limitations. The API allows you to send several PII fields, but they must all be SHA-256 hashed before transmission.

The most important field is the email address (`em`), followed by the phone number (`ph`). We have found that providing additional fields like first name (`fn`), last name (`ln`), and gender (`ge`) can significantly improve match rates, particularly for large B2C brands where users might use a different email for their Pinterest account than they do for their shopping checkout. By providing multiple hashed identifiers, you increase the probability that Pinterest can find a match in its user database. This process is deterministic and is currently the most robust way to maintain measurement accuracy.

> Warning: A common failure mode we see is when teams forward plaintext email to a server-side endpoint and let the server hash it, but forget to also lowercase and trim the string before hashing. This produces SHA-256 strings that never match Pinterest's reference set because "User@Example.com " and "user@example.com" result in entirely different hashes.

## Carrying the epik click identifier through to conversion
Whenever a user clicks an ad on Pinterest, the platform appends a parameter to your URL called `epik`. This is the Pinterest click identifier. On browsers like Safari, where third-party cookies are blocked, the `epik` acts as a crucial link. It allows Pinterest to understand exactly which ad campaign and which specific Pin led to the site visit, even if the user isn't logged in at the time.

To implement this properly, you must capture the `epik` from the URL when a user first arrives on your landing page. You should store this value in a first-party cookie or local storage. When the user eventually converts, your server-side logic must retrieve that stored `epik` and include it in the `click_id` field of the Conversions API payload. We have observed that accounts consistently passing the `epik` through the Conversions API see a significant **improvement in attributed conversion volume** compared to those relying on the Pinterest Tag alone.

## Pairing the Conversions API with a Shopping catalog feed
For e-commerce brands, the Conversions API shouldn't just send price and currency data. It needs to be deeply integrated with your product catalog. This is achieved through the `content_ids` field. The IDs you send in your conversion events must be an exact match for the IDs used in your Pinterest Shopping catalog feed. If your catalog uses a SKU like `shirt-123-blue`, your Conversions API event must send `shirt-123-blue`.

When these identifiers are aligned, you unlock the ability to run high-performance dynamic retargeting. Pinterest can see that a user viewed a specific SKU and then show that exact product in their feed later. If there is a mismatch between your API data and your catalog feed, Pinterest will be unable to link the user's intent to a specific product. This results in generic ad creative and a much lower conversion rate.

> Tip: Pairing `content_ids` with a live catalog is the single biggest lever for improving dynamic retargeting performance on Pinterest, as it allows for item-level optimization that static tags simply cannot achieve.

## Picking an implementation path: native, GTM server-side, or direct API
There are three main ways to handle a Pinterest Conversions API setup. The choice usually depends on your technical stack and the amount of control you need over your data.

Native Integrations are common for platforms like Shopify or BigCommerce. These are "plug and play" and usually handle both the Tag and CAPI for you. While convenient, they offer limited customization. If you have specific data privacy requirements or complex deduplication needs, native apps may fall short.

Google Tag Manager (GTM) Server-Side is the method we recommend most often for mid-market companies. It allows you to send data from the browser to a server-side container you control. From there, you can clean the data, hash the PII, and send it to Pinterest, Meta, and Google all at once. This reduces the number of scripts running in the user's browser, which can improve site speed.

Direct API Integration is the most flexible but requires the most maintenance. This involves having your backend developers write custom code to send events from your server (e.g., in Python or Node.js) directly to the Pinterest API. This is ideal for SaaS companies or custom e-commerce builds where you need total control over every parameter.

## Consent handling and what to strip when a user opts out
In a privacy-first world, your tracking must respect user choices. Pinterest provides an `opt_out` parameter in the API to help manage this. If a user declines marketing cookies via your consent banner, you should still send the conversion event to Pinterest but set `opt_out: true`. This tells Pinterest to use the data for aggregate reporting and modeling rather than for personalized targeting.

In some cases, especially in highly regulated markets, you may choose to go a step further. If a user hasn't consented, you can strip all `user_data` fields like email and phone number, sending only the `event_name` and `custom_data` like the transaction value. This "anonymized" data still helps you understand your overall ROI while strictly adhering to a high privacy standard. We recommend mapping your Consent Management Platform (CMP) directly to your server-side logic to ensure these flags are always accurate.

## Debugging with Pinterest Tag Helper and Events Overview
After you've completed your Pinterest Conversions API setup, you must verify that the data is flowing correctly. The Pinterest Tag Helper is a Chrome extension that allows you to see what the browser-side Tag is sending in real-time. This is the best way to verify that your `event_id` is being generated and sent correctly from the browser.

For the server-side portion, you need to use the "Events Overview" page within the Pinterest Ads Manager. This dashboard shows you the volume of events coming from both the Tag and the API. Pay close attention to the Match Quality score and the Deduplication Rate. If your deduplication rate is low, it means your `event_id` values don't match between the browser and server. If your match quality is low, you likely need to send more hashed PII fields. Monitoring these logs in the Pinterest Tag Manager debugging interface will help you catch and fix errors before they impact your bidding strategy.

## Common mistakes we see
  - Forgetting to lowercase and trim PII before hashing, resulting in a 0% match rate for Enhanced Match.
  - Using a timestamp in milliseconds instead of Unix seconds for the `event_time` field.
  - Inconsistent `event_name` values, such as using `Purchase` on the server but `checkout` in the browser.
  - Hard-coding a single `event_id` instead of using a unique value for every individual event.
  - Neglecting to pass the `client_user_agent` and `client_ip_address`, which are vital for matching when PII is unavailable.
  - Failing to capture the `epik` click ID and pass it in the `click_id` field for server-side events.
  - Sending duplicate events without an `event_id`, which leads to massive over-reporting of conversions.
  - Using outdated API versions (v3 or v4) that do not support the latest deduplication and matching features of v5.

## Implementation checklist
  - [ ] Create a Pinterest Ad Account and generate a long-lived API access token.
  - [ ] Configure the Pinterest Tag in the browser to include a unique `event_id`.
  - [ ] Set up server-side logic to generate or receive the matching `event_id` for every conversion.
  - [ ] Capture the `epik` parameter from incoming URLs and store it in a first-party cookie.
  - [ ] Implement a function to lowercase, trim, and SHA-256 hash all `user_data` fields.
  - [ ] Map your ecommerce `content_ids` to match your Pinterest Shopping catalog feed exactly.
  - [ ] Verify that `event_time` is being sent as a Unix timestamp in seconds.
  - [ ] Test the integration by firing a `checkout` event and checking the Events Overview dashboard.
  - [ ] Ensure the `opt_out` parameter is correctly linked to your site's consent management tool.
  - [ ] Review your Match Quality score after 7 days and add more `user_data` fields if needed.

## How Samarth Analytics helps
Modern tracking is no longer a "set it and forget it" task. For growth-stage companies, the complexity of server-side integrations often creates a bottleneck that slows down marketing performance. At Samarth, we specialize in building the technical infrastructure that allows your marketing team to focus on strategy rather than data troubleshooting. We help you implement a fully deduplicated Pinterest Conversions API setup that maximizes your match rates and protects your attribution from signal loss. Whether you need a migration to GTM server-side or a custom API build, we ensure your data is clean, compliant, and ready for optimization. If you're ready to fix your Pinterest measurement, start with a [free audit](https://samarthanalytics.com/free-audit) or [contact us](https://samarthanalytics.com/contact) to learn more about our implementation services.

---

Published by [Samarth Analytics](https://samarthanalytics.com) (admin@samarthanalytics.com). All guides: https://samarthanalytics.com/guides.
