Pinterest tag implementation overview

The Pinterest tag tracks actions people take on your website after viewing your Promoted Pins. Place the Pinterest tag on your website to gather audience insights and measure your return on ad spend (RoAS).

When you add the Pinterest tag to your website, you can learn which ads lead to more conversions and how people engage with your website.

Base code

The base code is the foundation of the Pinterest tag. Place this on every page of your site, whether or not you’re tracking specific conversion events on that page.

Event code

You’ll place event codes on pages where you want to track specific conversions. After you place the base code, put an event code where you want to see what actions people are taking, like if they signed up or if they bought something.

Process overview

Note that the following instructions assume you’re using JavaScript and HTML.

Set up Ads Manager

  1. Log into your Pinterest business account and go to the Conversions page in Ads Manager

  2. Click Create Pinterest Tag

  3. Click the name of your Pinterest tag to copy the base code including your unique tag ID

Implement optional Enhanced match

You have the option of implementing Enhanced Match so you can see more conversions by tracking website actions when there's no Pinterest cookie present. It sends back secure, hashed email addresses with your conversions to help increase the visibility you have into your conversions. If you use the <img> tag you’ll have to hash the email addresses yourself before passing them to the tag.

  1. Find the base code

  2. Replace <user_email_address> in the code with your specific information

Add the Pinterest tag to your website

  1. Locate the header for your site.

  2. Place the base code in the global header of your website between the <head> and </head> tags so that it fires on every page

  3. Go to the pages where you would like to track a specific event, like when someone purchases something or when someone adds an item to their cart.

  4. Add the corresponding event code to the page, ensuring that the base code will run before the event code.

Verify your Pinterest tag

  1. Download the Pinterest tag helper Google Chrome extension to see the conversion tags and associated event data being sent from your website

  2. Go to Ads Manager and find the event history table on the conversions page to view the conversions fired by your tag in the last 24 hours

View conversions

You can view your attributed conversions in Ads manager.

  1. After running an ad campaign, log in to your Pinterest account and go to Ads manager

  2. Click on Ads in the top left corner and select Reporting

  3. Go to Table: Performance under the graph in the reporting table

More resources

  1. Base code

  2. Event code

  3. Event code examples

  4. Examples of the base and event codes together.

  5. Enhanced match

  6. IMG tag

  7. Pinterest tag helper

 

Still need help?
Contact us