Pinterest Conversions API (CAPI) sends conversion data directly from your server to Pinterest — bypassing the browser. This means ad blockers, ITP (Safari's tracking prevention), and consent banners can't block it. Used alongside your browser tag, CAPI improves conversion measurement completeness by 15%–30% for most home decor brands.
Pinterest Server-Side Tracking vs the Pinterest Tag
The Pinterest tag is a JavaScript snippet that runs in the browser — it fires on page views, add-to-cart events, and checkouts client-side. Pinterest server-side tracking (CAPI) sends the same events directly from your server to Pinterest, bypassing the browser entirely.
They are not the same thing and are not interchangeable — they are designed to run together. The tag handles real-time browser signals; CAPI captures the events the tag misses due to ad blockers, ITP, or consent refusals. Running both with deduplication is the correct setup.
Do You Need Conversions API?
CAPI is recommended (not required) for most advertisers. You should prioritize it if:
- Your site has significant EU/UK traffic (GDPR consent banners block many tag fires)
- You target audiences that commonly use ad blockers (design-conscious, affluent demographics)
- Your Pinterest-reported conversions seem significantly lower than actual orders
- You're spending $2,000+/month — at that spend level, the data quality improvement is material
For Shopify stores under $1,000/month spend, the Pinterest Shopify app is sufficient — it includes a basic server-side component. CAPI becomes more important as spend and EU traffic increase.
Method 1: Shopify App (Simplest)
The Pinterest Shopify app includes a server-side component that functions as a basic CAPI integration. If you're on Shopify, this is active automatically when you use the Pinterest app — no additional setup.
To verify it's active: Pinterest app settings → verify "Enhanced Conversions" is enabled. This sends hashed customer data (email, name) alongside events to improve match rates.
Method 2: Pinterest CAPI Direct Integration
For non-Shopify stores or custom CAPI setups, you send events directly to Pinterest's API endpoint.
Step 1 — Get your access token
- Pinterest Ads Manager → Ads → Conversions → Conversion Access Token
- Create a new token — store it securely (treat like a password)
Step 2 — Send events on order completion (server-side)
When an order is placed, your server sends a POST request to Pinterest's API:
POST https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/events
{
"data": [
{
"event_name": "checkout",
"action_source": "website",
"event_time": 1715000000,
"event_id": "ORDER-12345",
"event_source_url": "https://yourstore.com/thank-you",
"user_data": {
"em": ["HASHED_EMAIL"],
"ph": ["HASHED_PHONE"],
"client_ip_address": "1.2.3.4",
"client_user_agent": "Mozilla/..."
},
"custom_data": {
"currency": "USD",
"value": "549.00",
"order_id": "ORDER-12345",
"contents": [
{
"id": "SKU-789",
"item_price": "549.00",
"quantity": 1
}
]
}
}
]
} Step 3 — Hash user data correctly
Pinterest requires PII (email, phone) to be hashed with SHA256 before sending. The email must be normalized first (lowercase, trimmed):
// Node.js example
const crypto = require('crypto');
const hashedEmail = crypto
.createHash('sha256')
.update(email.toLowerCase().trim())
.digest('hex'); Deduplication — Critical
If both your browser tag and CAPI send the same checkout event, Pinterest counts it twice. Deduplication prevents this — use the same unique identifier in both:
- Browser tag:
pintrk('track', 'checkout', { order_id: 'ORDER-12345' }) - CAPI:
"event_id": "ORDER-12345"
Pinterest matches events with the same event_id and order_id, deduplicates them, and counts the conversion once. Without this, your ROAS numbers will appear inflated.
Method 3: Via Integration Platforms
Several integration tools simplify CAPI setup without direct API calls:
- Elevar: Popular for Shopify — handles both tag and CAPI with deduplication
- Littledata: Shopify-specific, robust server-side tracking
- Segment: If you're already using Segment, it has a Pinterest CAPI destination
- Triple Whale: Attribution platform that includes Pinterest CAPI
For most home decor Shopify brands, Elevar or Littledata are the most straightforward options and don't require custom development.
Verifying CAPI Is Working
- Make a test purchase
- Pinterest Ads Manager → Ads → Conversions → Events → checkout event → Recent Activity
- Look for events with action_source = "website" (tag) and action_source = "server" (CAPI)
- Both should appear for the same order_id — with one counted after deduplication
Pinterest Tracking Troubleshooter
Step-by-step checklist for tag, CAPI, and attribution issues.
Frequently Asked Questions
Is Pinterest Conversions API the same as server-side tracking?
Yes. Pinterest Conversions API (CAPI) is Pinterest's implementation of server-side tracking. The terms are used interchangeably. Server-side tracking is the general concept — sending conversion data from your server instead of the browser. Pinterest CAPI is the specific API endpoint you use to send those events to Pinterest's system.
What is CAPI in Pinterest?
CAPI stands for Conversions API — Pinterest's server-side event tracking system. It lets you send conversion events (checkout, add to cart, page visit) directly from your server to Pinterest, bypassing browser-side restrictions like ad blockers and iOS privacy settings. For Shopify brands, the Pinterest Shopify app includes a basic CAPI connection. For advanced setups, you implement CAPI directly via Pinterest's API.
Do I need Pinterest Conversions API if I already have the Pinterest tag?
Yes. The Pinterest tag is a browser-side script that gets blocked by ad blockers and iOS privacy restrictions, causing 15 to 40 percent of conversion events to go unrecorded. Conversions API (CAPI) sends conversion events server-side, bypassing these blocks. Running both tag and CAPI with proper deduplication gives Pinterest complete conversion signal, which directly improves algorithm optimization and ROAS for catalog campaigns.
What is the easiest way to set up Pinterest CAPI for Shopify?
The simplest method is the Pinterest for Shopify app, which enables server-side CAPI automatically when you connect your Pinterest business account. The app handles tag installation, CAPI connection, and deduplication. No custom code required. For stores not on Shopify, Pinterest offers a direct API integration requiring developer work, or you can use a CDP or tag management platform like Segment or Google Tag Manager server-side container.
How does Pinterest CAPI deduplication work?
Pinterest deduplicates events using an event ID that must match between the browser tag and the server-side CAPI event. When a checkout event fires from both sources with the same event ID, Pinterest counts it once. If event IDs do not match, both events count separately, inflating your conversion numbers. The Pinterest for Shopify app handles this automatically. For manual CAPI setups, you must generate and pass consistent event IDs from both the tag and the API call.
Step-by-step diagnosis for every Pinterest tracking issue — tag gaps, conversion drops, GA4 discrepancies, attribution windows, and CAPI setup.
Need tracking set up as part of full management?
Decor Ads Pro handles Pinterest CAPI, tag setup, and full campaign management for home decor brands.