Conversion Tracking

Pinterest Conversion Tracking for Lead Generation: The Pinterest Tag Plus the Conversions API

NPP
Net Profit Positive Advertising Strategy
| | 6 min read
Pinterest conversion tracking: a browser path through the Pinterest tag and a server path through the Conversions API, both sending the same event ID to Pinterest
The browser path through the Pinterest tag, and the server path through the Conversions API, carry the same event ID.

Pinterest can only learn from the leads it hears about. The usual setup is a tag in the visitor's browser that reports page visits and form submissions as they happen.

The browser is not a reliable messenger. Ad blockers and strict privacy settings can stop the tag before it reports. The lead is real and lands in your inbox, but Pinterest never sees it, and it can't find more people like that visitor.

The fix is to send each lead twice: once from the browser and once from your own server, with the same event ID on both, so Pinterest counts it once. This post walks through how we set that up for lead generation sites, with Google Tag Manager for the tag and the website's own form handler for the server.

Two paths, one lead
Visitor sends the form
Browser Google Tag Manager → Pinterest tag event ID
Server Form handler (Cloudflare Worker) → Lead saved in the CRM → Conversions API event ID
Pinterest Same event ID: counted once

Two Ways Pinterest Hears About a Lead

Each one covers a gap in the other. The tag sees visits the server never handles. The server sees leads the browser fails to report. Pinterest's own setup offers the two together, as "Pinterest tag with Conversions API".

The Pinterest Tag, Through Google Tag Manager

We add the tag through Google Tag Manager (GTM) instead of pasting Pinterest's code into the site. One container holds every platform's tags, and a change goes live without touching the website's code.

Three tags in Google Tag Manager
Google Tag Manager
Page visitevery page→Pinterest
Leadform accepted, with the hashed email→Pinterest
Signupa registration, such as a webinar→Pinterest

Three tags cover a lead generation site:

We build them with the Pinterest Pixel Tag template from GTM's template gallery, which Pinterest publishes and maintains, instead of custom code. Every tag in the container is set up the same way, and anyone on the team can read it.

Hashed means the email goes through SHA-256, a one-way scramble. Pinterest compares the scrambled value with the scrambled emails of its own users. Pinterest never receives the plain email from the tag.

One step people miss: many sites send a security header that lists which outside services may load on the page. Pinterest's addresses have to be on that list, or the browser blocks the tag without any visible error.

The Conversions API, From Your Own Form Handler

The common route to the Conversions API is server-side Google Tag Manager, which needs its own hosting. If your website form already posts to a small server program you control, there is a simpler route: that program sends the lead to Pinterest itself.

On the sites we build, forms post to a Cloudflare Worker, a small program that runs on Cloudflare's network. When a lead arrives:

  1. The Worker saves the lead in the CRM first.
  2. The visitor sees the thank-you message straight away.
  3. Then the Worker sends the lead to Pinterest's Conversions API. If Pinterest is slow or down, the lead is already safe in the CRM.
What the server sends with each lead
Sent with each leadWhy it matters
Event IDThe same ID the tag sent, so Pinterest counts the lead once
Hashed email and phoneLets Pinterest match the lead to a Pinterest user
Pinterest click IDTies the lead to the ad click, when the visit came from an ad
IP address and browserHelps matching when there is no click ID
Page addressShows which page the form was sent from

The key that lets the Worker talk to Pinterest is stored as an encrypted secret in Cloudflare, never in the website's code. Two switches control the send: one turns it on or off, and the other sends test events that Pinterest checks but doesn't record.

One Event ID, One Lead

One event ID, two copies, one lead
Form sent
↓
One new event ID
Browser
Handed to Google Tag Manager
↓
Pinterest tag
Server
Sent with the form
↓
Worker
↓
Conversions API
Pinterest: two copies, one ID, one lead

Sending every lead twice only works if Pinterest knows the two copies are the same lead. That is the event ID's job.

Pinterest receives the lead from both sides with the same ID and keeps one. If the browser copy was blocked, the server copy still arrives, and the lead still counts.

Testing Before It Counts

Test, then live
Test mode on checked by Pinterest, not recorded
→
One TEST form Tag Helper and Test events show the same event ID
→
Test mode off leads recorded
Off switch: stops the server send. Forms keep working.

We never switch the server send straight on.

  1. Test mode first. Pinterest's Test events screen shows each server lead and what came with it, such as the hashed email and the IP address, without recording it in your reports.
  2. One test form. We send one form marked TEST and check two things: the Pinterest Tag Helper browser extension shows the lead from the browser, and Test events shows the lead from the server with the same event ID.
  3. Live. We turn test mode off. Pinterest's Events overview then shows leads from both the tag and the API.

If anything goes wrong later, one switch stops the server send. Forms and leads keep working either way.

What Changes in Your Pinterest Account

What We Need From You

  1. Admin access to your Pinterest business account, to create the ad account and the tag.
  2. Publish access to your Google Tag Manager container.
  3. Access to the code behind your website form, or your developer's time, for the server send and the security header.
  4. What counts as a lead and a signup on your site.

With those, we build and test the rest.

Send Every Lead to Pinterest

Tell us how your website forms work today, and we'll show you what it takes to send every lead to Pinterest.

Get Started

NPP
Net Profit Positive Advertising Strategy Team

We build ad campaigns around what lands in your account, not what looks good on a dashboard.