Skip to content
🚀 Find us on Product Hunt

Pinterest Tag Tracking Setup for WordPress

Quick answer: Use the free container builder wizard to select Pinterest Tag and your events, enter your tracking ID, then import the generated file into Google Tag Manager - no manual tag setup needed for any of the 21 events below.

Pinterest base tag and standard events, generated as Custom HTML. This platform does not have a native GTM tag type, so the container wraps its base code in a Custom HTML tag.

Build my Pinterest Tag container →

Events you can track

conversion events

engagement events

By Humayun Kabir Naim — Last updated: 9 November 2026

Quick answer

To track a WordPress site in Pinterest through Google Tag Manager, install one Pinterest base tag on every page — it sends PageVisit and carries your Tag ID — then add event tags only for the actions a content or lead site actually has: Lead on proven form success (the same thank-you page, success message, or form-plugin success event your GA4 setup uses — never the submit click), Signup on completed registrations, Search on site searches, ViewCategory on category and archive pages, and WatchVideo where video matters. Add an event_id, generated once at the action, to every event you also send through the Conversions API, because Pinterest deduplicates the Tag and API copies of an event by that shared ID. And the honest boundary: a plain WordPress site has no checkout — Checkout and AddToCart only become real when WooCommerce runs underneath, at which point the WooCommerce + Pinterest hub owns them. Before any of this, check for Pinterest's own WordPress/WooCommerce plugin: it sends the Tag and the Conversions API by itself, so if it is active, GTM must not send the same events.

Pinterest Tag ID shown on the Conversions page in Ads Manager

What gets tracked

Pinterest's standard event set is small and fixed. Here is how it maps onto a WordPress site that publishes content and collects leads:

WordPress actionCapture it byPinterest event
Any page or post is viewedBase tagPageVisit
Category, tag or archive page viewedPage View trigger on archive pathsViewCategory
A visitor uses the site searchSearch results pageSearch (with search_query)
Contact / quote form submitted successfullyThank-you page, success message, or plugin success eventLead (with lead_type)
Contact Form 7 form submitted successfullywpcf7mailsent listener pushLead
User registration / membership sign-up completedRegistration success page or success eventSignup
An embedded video is playedGTM YouTube/video trigger or player eventWatchVideo (with video_title)
Booking request completedSuccess pageCustom (e.g. booking_completed) — Pinterest has no Schedule event
Item added to cartWooCommerce data layerAddToCart — WooCommerce sites only
Order completedWooCommerce data layerCheckout — WooCommerce sites only

Three honest constraints shape this table. The last two rows are conditional: on a site with no shop they can never fire truthfully, and building them anyway produces either dead tags or invented data — leave them out until a shop exists. Bookings have no home: Pinterest's set has no Schedule event, so a completed booking is a Custom event with your own name, or a Lead if it is really an enquiry — pick one and document it. Lead follows the house rule of this whole WordPress series: proven success only. A submit click is an attempt; Pinterest does not know the difference, but your optimisation budget will learn it.

Deep dives: Form Submission, Lead, Sign Up, Search, Page View. Set GA4 up first if you have not — the form signals below are shared with it: WordPress + GA4. See all options on the WordPress hub.

Before you start

  1. Your Tag ID, copied exactly. The Pinterest Tag ID is a 13-digit number, found in Ads Manager → Conversions → Pinterest Tag. It belongs to one ad account: a Tag ID from a different account, or a mistyped digit, sends your events somewhere you are not looking — and Pinterest will simply show you an empty event history. Copy it from Ads Manager, do not retype it.
  2. One sender only. Check for Pinterest's own plugin first: the Pinterest for WooCommerce integration installs the Tag and enables the Conversions API by default, and tag plugins can do the same. If any of them is active and sending, deactivate it before GTM goes live — deduplication cannot save two browser senders, and the plugin's server copies carry its own event IDs, not yours. (The Pinterest Save button and Pin widgets are not the Tag and do not count as senders.)
  3. GTM installed on the site, once. One web container (GTM4WP or your theme setup), with no second container or hardcoded Pinterest snippet in the theme.
  4. Claim your website in Pinterest. Pinterest ties tag reporting to the claimed domain for your account — claim the site in your Pinterest settings so the events you send are the events your account reports on.
  5. A consent decision before the base tag fires. Pinterest provides a consent call for the tag (pintrk('setconsent', …)), and GTM's own consent settings can hold tags until consent is granted. Decide how the tag behaves for visitors who decline before publishing — events firing ahead of consent is a compliance problem first and a data problem second. The Consent Mode v2 guide covers the GTM side.
  6. Forms that expose a success signal. A thank-you page redirect, a visible success message, or a plugin success event (Contact Form 7, WPForms and Gravity Forms all provide one). If your GA4 form tracking already works, these signals already exist in GTM.

Route 1: Use the free TagManagerBuilder container

Open the GTM Container Builder, choose WordPress, then Pinterest Tag, and tick the events you want. Enter your Tag ID, download the JSON, then in GTM go to Admin → Import Container and choose Merge → Overwrite conflicting tags, triggers, and variables. Test with the testing section below before publishing. If a GA4 container from this site is already in the workspace, import into the same workspace so the form triggers and variables are shared — Pinterest's Lead should hang off the same success push as GA4's generate_lead, not off a second listener.

Route 2: Build it manually in GTM

Step 1 — Settle the sender

Deactivate the Pinterest plugin (or any tag plugin sending Pinterest events), exactly as in "Before you start". Do it before the GTM tags go live, not after: overlap on the browser side is unrecoverable double-counting, and the plugin's CAPI copies cannot deduplicate against GTM events whose IDs it does not share.

Pinterest for WooCommerce plugin settings with Tag and Conversions API enabled

Step 2 — The base tag, with enhanced match where you lawfully can

Tags → New, choose the Pinterest Tag template from the Community Template Gallery, or a Custom HTML tag with Pinterest's base code:

pintrk('load', '2612345678901');
pintrk('page');

Set the trigger to All Pages, and gate it with GTM's consent settings so it does not fire for visitors who have declined (or use Pinterest's setconsent call in step with your banner — one mechanism, applied consistently). The page call sends PageVisit.

Enhanced match strengthens the tag by attaching a hashed email to it, so Pinterest can match conversions to users without relying on cookies alone. Pinterest's tag accepts the email in the load call and hashes it before it is sent:

pintrk('load', '2612345678901', { em: '{{Hashed Email - logged-in user}}' });
pintrk('page');

Only pass an email you actually have at that moment — a logged-in member's address, for example — and only with consent. Never scrape form fields into the base tag on every page: the base tag fires site-wide, the email usually does not exist yet, and an empty or guessed value helps no one. Note that Pinterest can also collect enhanced-match data automatically for tag installs (an Ads Manager setting, using a first-party _pin_aem cookie); check whether it is on for your account and make a deliberate decision about it, because automatic collection from your forms has the same consent implications as sending the email yourself.

Pinterest base tag in GTM with the Tag ID and PageVisit call Pinterest base tag held by consent settings in GTM Preview

Step 3 — Lead and Signup, on the shared success push

Pinterest events are one pintrk('track', …) call each, in a Custom HTML tag (or the template's event mode). The Lead tag fires on the same generate_lead push your GA4 and Meta setups use — the CF7 wpcf7mailsent listener, the success message, or the thank-you page — with two additions that matter: a lead_type so forms stay separable, and an event_id generated once at the submission and carried in the push (add the field to the existing listener rather than building a second one):

pintrk('track', 'lead', {
  event_id: '{{DLV - pinterest_event_id}}',
  lead_type: 'Contact form'
});

Signup follows the identical pattern at the end of your registration flow. Both are "the action completed" events — neither belongs on a button click, and the invalid-submission test in the testing section applies to them exactly as it does on the other platforms.

Pinterest Lead event tag in GTM with event ID and lead type

Step 4 — Search, ViewCategory and WatchVideo

The engagement set is trigger work, not code work. Search: a Page View trigger on your search results path, reading the query into search_query (WordPress search uses the s URL parameter — a URL Query Variable reads it). ViewCategory: a Page View trigger limited to category/tag/archive paths. WatchVideo: GTM's YouTube Video trigger for embedded YouTube, firing watchvideo with the video title variable; for other players, use the player's own play event into a dataLayer push. Keep these events in their lane: they build audiences and describe content interest; they are not conversions to optimise a lead campaign against.

Step 5 — The WooCommerce boundary (only if a shop sits underneath)

If this WordPress install also runs WooCommerce, AddToCart and Checkout become real — and they stop belonging to this hub. They need the shop's data layer (value, currency, order ID, line items) and the event_id discipline of the commerce setup, where the order ID is the natural shared ID between the browser Checkout and its Conversions API copy. Build them from the WooCommerce + Pinterest hub and do not maintain a second, thinner version of them here.

Conversions API and deduplication — Pinterest's rule, stated at its own altitude

The Conversions API sends the same events from your server, recovering what the browser loses. Pinterest's documented deduplication behaviour is simple, and this hub will not dress it up with other platforms' mechanics: if the same event arrives through the Tag and through the Conversions API carrying the same event_id, Pinterest treats them as one event. Give the two copies different IDs — or give the API copy none — and both are kept.

What Pinterest does not publish is a merge-window arithmetic of the kind TikTok documents (no "copies within X minutes merge, later copies drop" rule to design around). So the working rules here are deliberately plain: generate the ID once, at the action (the submission push, the order), pass that single value down both paths unchanged, use the same event name on both paths, and send the server copy promptly rather than in a nightly batch. On a plain WordPress site, also weigh whether CAPI is worth it yet: the usual routes are a server GTM container (whose Pinterest CAPI tag uses your Advertiser ID, distinct from the web container's Tag ID) or a plugin — and reintroducing a plugin as the CAPI sender reopens the one-sender question from Step 1, because that plugin may send browser events too. For many lead sites the honest answer is: Tag now, IDs done right from day one, CAPI when volume justifies it. Verify whatever you build in Ads Manager's event history and Test Events: each doubly-sent event should appear once, with its sources accounted for.

Duplicate PageVisit in Pinterest Tag Helper from two base tags

Test it: Tag Helper and GTM Preview

GTM Preview showing the Pinterest Lead tag fired on a successful form submission
  1. Click Preview in GTM and open the site in Tag Assistant. Submit each form once with test details — including one deliberately invalid submission, which must produce no Lead.
  2. In the Preview timeline, click generate_lead and confirm the Pinterest Lead tag sits under Tags Fired, with lead_type and event_id populated.
  3. Install the Pinterest Tag Helper Chrome extension and repeat the flow on the live site. It reads the page as Pinterest sees it: your Tag ID, each event as it fired, its parameters, and warnings (a missing event_id on an event you also send by API is exactly the warning to act on).
  4. In Ads Manager, open Conversions → Test Events (and the tag's Event history) and repeat a submission. Events should register against the tag — allow the history view some time to catch up before concluding an event is lost; Tag Helper is the real-time truth, Event history is the record.
  5. Run the consent test: load the site with consent declined and confirm the base tag does not fire (or fires only in the consent state you configured). Then accept and confirm PageVisit fires once.
  6. Only when the flow is clean end to end, click Submit in GTM to publish — and repeat one test submission against the live container.
Pinterest Tag Helper showing PageVisit and Lead with parameters Pinterest tag event history showing content and lead events received

WordPress-specific troubleshooting

Tag Helper finds no tag at all. Read the ID first: 13 digits, copied from this ad account's Conversions page. A digit dropped in a manual retype, or an ID from a second Pinterest account, produces a perfectly firing tag that reports to nowhere you are looking. Then confirm the base tag's trigger is All Pages and the container is published.

Every event appears twice. Two senders. The Pinterest for WooCommerce plugin is the usual one — it sends the Tag and the Conversions API together, so alongside GTM your browser events double in Tag Helper, and its server copies carry its own event IDs and will not deduplicate against yours. The other classic is the base code pasted into a header/footer plugin and delivered by GTM. Keep one sender; search the page source for your Tag ID to find the second copy.

Events fire before consent, or despite a refusal. The base tag was published without gating. Add GTM consent settings (or Pinterest's setconsent flow driven by your banner), then re-run the declined-consent test from the testing section. Automatic enhanced match belongs in the same review: if it is collecting from your forms, it should be doing so under the same consent decision.

Lead counts are higher than real enquiries. The tag is on a click or on GTM's Form Submission trigger — attempts, not successes. Move it to the success signal (Step 3) and re-test with an invalid submission.

Checkout and AddToCart tags exist but never fire. On a site with no shop, that is the correct behaviour of a wrong build: there is no cart and no checkout for them to describe. Remove them; if a shop is added later, build them from the WooCommerce hub where the data layer they need exists.

Tag Helper is clean but Ads Manager shows nothing. Check you are viewing the ad account that owns the Tag ID, confirm the website is claimed for that account, and give Event history time to update. An event visible in Tag Helper left the browser correctly — the gap is in account plumbing, not in GTM.

Next steps once this is clean: WordPress + TikTok and WordPress + Meta reading the same form signals, then Consent Mode v2 so consent choices reach every tag correctly.

Frequently asked questions

Do I need a shop to use the Pinterest Tag on WordPress?

No. Most of Pinterest's standard events describe content and lead actions, not purchases: PageVisit, ViewCategory, Search, WatchVideo, Signup and Lead all work on a site that sells nothing. Only AddToCart and Checkout need a shop underneath. A content or lead-generation site builds the first set and leaves the commerce pair out until WooCommerce exists.

Should I use the Pinterest plugin or GTM?

One or the other — never both for the same events. Pinterest's own WordPress/WooCommerce integration installs the Tag and enables the Conversions API by itself, which makes it a complete sender and a fast start. Choose GTM when you want one container feeding every platform from the same form signals, or events and parameters the plugin does not expose. Running both doubles your browser events, and deduplication cannot merge two browser copies.

What is the Tag ID, and where do I find it?

It is the 13-digit number that identifies your Pinterest tag, shown in Ads Manager under Conversions → Pinterest Tag. Copy it from there rather than retyping it, and make sure it comes from the ad account you actually report in — a Tag ID from a different account, or one mistyped digit, sends events to a tag nobody on your team is watching.

How does deduplication work between the Pinterest Tag and the Conversions API?

By event_id. If the Tag copy and the Conversions API copy of the same action carry the same event_id, Pinterest counts them as one event; with different IDs — or no ID on one side — both are kept. Generate the ID once, at the action itself (the form submission, the order), and pass that single value down both paths under the same event name. Pinterest does not publish TikTok-style merge windows, so the discipline is simply: same name, same ID, sent promptly.

Does Pinterest have a Schedule or Purchase event for bookings and sales?

Neither. Pinterest's commerce event is Checkout — completed transactions on a site with a shop — and there is no Schedule event for bookings. A completed booking on a lead site is a Custom event with your own name (for example booking_completed), or a Lead if it is really an enquiry. Do not fire Checkout for bookings: it reports revenue-shaped data for an action that has none.

Tag Helper shows my events, but Ads Manager shows nothing. What is wrong?

Usually account plumbing, not the tag. A Tag Helper reading means the events left the browser correctly, with your Tag ID on them. Check that you are viewing the ad account that owns that Tag ID, that your website is claimed for the account, and give Event history time to update — it is a record, not a live feed. If events are still absent after that, re-check the ID digit by digit against the Conversions page.

Share with