Pinterest Tags
Use a Pinterest Tag tag to tell Pinterest what visitors do on your site.
Pinterest uses these events to measure which ads led to conversions, to show
ads to the people most likely to convert, and to build retargeting audiences.
Nitoriq loads Pinterest’s library and loads your tag once per page.
Pinterest sends every event to every Pinterest tag on the page. Use one Pinterest tag per page, or each tag counts the other’s events.
Before you start
- you have the tag ID from Pinterest Ads under
Conversions. It’s a number, such as2612345678901 - the container has triggers for the page views and actions you want to send
- variables exist for values such as order ID, order value, and cart contents
- if you also send conversions server-side, the Pinterest integration is set up in Nitoriq
Configure a Pinterest tag
Create the tag
Open the container, choose Tags, choose New Tag, then choose
Pinterest Tag under Advertising.
Enter the tag ID
Paste the tag ID from Pinterest Ads, or enter a single variable that holds it,
such as {{pinterest_tag_id}}.
Choose the event
New tags start on page (base page view), the page view Pinterest’s own base
code sends. For conversions, pick an event such as checkout, addtocart, or
lead. Event names are in lowercase, as Pinterest’s library uses them. For
your own events, use Pinterest’s custom event.
pagevisit is a separate Pinterest event for pages that matter to you, such
as product pages. It isn’t needed for ordinary page views.
Fill in parameters
Map each parameter to a fixed value or a variable:
Value: a number such as49.90, sent as a numberCurrency: pick it from the list, or choose+to use a variable if you sell in several currenciesOrder Quantity: a whole numberLine Items: a variable holding a list of line item objects, for example from the data layer
Use Additional Parameters for anything else.
Turn on deduplication for conversions
For conversion events, Deduplication defaults to Match server-side. Set
Transaction ID to the same variable your Report Conversion tag uses, and
Conversion Type to the same conversion type. A checkout here pairs with
the checkout event the Pinterest integration sends. See
Browser pixels alongside the Conversions API.
Select triggers, save, and publish
Choose the triggers, save the tag, and publish the container.
Pinterest Tag fields
Tag ID
The Pinterest tag to send to, or a single variable that holds it.
A value that isn't a valid tag ID is refused on save; a variable is checked again when the tag fires.Event
A Pinterest event, or page for the base page view.
Pinterest reports and optimizes on these events.Parameters
The parameters Pinterest documents for the chosen event.
Values are sent with the types Pinterest expects; unusable values are left out and noted in the debug overlay.Deduplication
Sends an event ID so Pinterest counts a browser event and the same server-side event once.
Without it, a conversion sent by both the tag and the Pinterest integration is counted twice.Fire once per page
Sends the event at most once per page load.
Useful for events whose trigger can match more than once.Allow Pinterest in a Content Security Policy
If your site sets a Content Security Policy, allow:
script-src:https://s.pinimg.comconnect-srcandimg-src:https://ct.pinterest.com
Pinterest can change the hosts it sends to. If events stop after a Pinterest update, check the browser console for blocked requests.
Check that it works
Open your page with ?niq_debug=1 to see the debug overlay. Each Pinterest
call appears as pinterest · track checkout along with the values sent.
In Pinterest Ads, open Conversions and check the tag’s event history, or
install the Pinterest Tag Helper browser extension.
A Pinterest tag is set up when
- the tag type is
Pinterest Tagand the tag ID is valid - only one Pinterest tag runs on each page
- page-view tags use
pageand fire on DOM Ready, plus Route Change on single-page apps - conversion tags have deduplication set to match your server-side integration
- the container is published
Was this page helpful?