Pinterest CAPI Integration

Send server-side conversions to Pinterest Ads

Pinterest Conversions API Integration

Connect Anacoic to Pinterest Ads to send server-side conversion events for improved campaign attribution and optimization.

Prerequisites

Before you begin:

  1. A Pinterest Business account
  2. A Pinterest Tag (recommended)
  3. Access to Pinterest API for Conversions

Setup Instructions

Step 1: Find Your Tag ID

  1. Log in to Pinterest Business Hub
  2. Go to AdsConversions
  3. Select your Tag or create a new one
  4. Copy the Tag ID (13-digit number)

Step 2: Get Your Access Token

  1. Go to Business HubDevelopers
  2. Create a new app or select existing
  3. Navigate to API Access
  4. Generate an access token with ads:write scope
  5. Copy the token

Note: Pinterest tokens expire after 30 days and must be refreshed.

Step 3: Configure in Anacoic

  1. Go to your GatewayIntegrations tab
  2. Find Pinterest and click Connect
  3. Enter:
    • Tag ID: From Step 1
    • Access Token: From Step 2
  4. Toggle Enable Integration on
  5. Click Save Configuration

Event Mapping

Anacoic automatically maps events to Pinterest’s taxonomy:

Anacoic EventPinterest Event
Pageviewpage_visit
View Contentview_category
Searchsearch
Add to Cartadd_to_cart
Add to Wishlistadd_to_wishlist
Initiate Checkoutcheckout
Purchasepurchase
Leadlead
Sign Upsignup
Watch Videowatch_video

User Data Requirements

Pinterest requires hashed user data for privacy:

Automatically Hashed Fields:

  • Email (em)
  • Phone number (ph)
  • Gender (ge)
  • Birthdate (db)
  • First name (fn)
  • Last name (ln)
  • City (ct)
  • State (st)
  • ZIP code (zp)
  • Country (country)
  • External ID (external_id)

Example Event:

anacoic.track('Purchase', {
  value: 75.00,
  currency: 'USD',
  order_id: 'ORDER-456',
  user: {
    email: '[email protected]',      // Will be hashed
    phone: '+1-555-0199',               // Will be hashed
    firstName: 'Jane',
    lastName: 'Smith',
    city: 'New York',
    state: 'NY',
    zip: '10001',
    country: 'US',
    external_id: 'cust_789'
  }
});

E-commerce Data

Pinterest supports rich product data:

anacoic.track('Purchase', {
  value: 150.00,
  currency: 'USD',
  order_id: 'ORDER-123',
  content_ids: ['PROD-001', 'PROD-002'],
  content_name: 'Summer Collection',
  content_category: 'Clothing',
  num_items: 2,
  contents: [
    { id: 'PROD-001', item_price: 75.00, quantity: 1, item_name: 'Summer Dress' },
    { id: 'PROD-002', item_price: 75.00, quantity: 1, item_name: 'Beach Hat' }
  ]
});

Search Events

For search tracking, include the search query:

anacoic.track('Search', {
  search_string: 'summer dresses',
  query: 'summer dresses'  // Alternative field name
});

Testing Your Integration

Live Logs Method

  1. Go to Gateway → Live Logs
  2. Trigger a test event
  3. Look for “Pinterest” destination with status 200

Pinterest Events Manager

  1. Go to Business HubAnalyticsConversions
  2. Click on your Tag
  3. View the Event History
  4. Look for “API” as the source

Match Quality

Pinterest uses advanced matching to connect events to users:

User DataMatch Strength
EmailHigh
Email + PhoneVery High
Email + Phone + External IDMaximum

Tip: Enable Auto-Enrichment to automatically capture available user data from your e-commerce platform.

Troubleshooting

”401 Unauthorized”

  • Token expired (valid for 30 days)
  • Generate a new token and update configuration

”400 Bad Request”

  • Invalid event format
  • Check Live Logs for detailed error messages
  • Ensure required fields are present

Events Not Showing

  • Verify Tag ID is correct
  • Check that integration is enabled
  • Allow up to 15 minutes for Pinterest processing

Data Retention

Pinterest retains conversion data for:

  • Attribution window: Configurable (default 30 days)
  • Reporting: Up to 1 year

Privacy & Compliance

  • All PII fields are SHA256 hashed
  • Pinterest is GDPR and CCPA compliant
  • Supports user opt-out via opt_out_type field

Opt-Out Example:

anacoic.track('Pageview', {
  opt_out_type: 'LDU'  // Limited Data Use for CCPA
});

Best Practices

  1. Send complete user data when available for better matching
  2. Use consistent user identifiers across events
  3. Test before launching campaigns
  4. Monitor match rates in Pinterest Analytics
  5. Keep tokens refreshed (30-day expiration)

Support

Need help? Contact us or visit our troubleshooting guide.