You can connect your Google Tag Manager account with your Pinterest tag to find out how much Pinterest influences traffic to your store and sales of your products.
The base code allows you to gather data on events, like someone buying a product or adding a product to their shopping basket. The base code must be installed across all pages of your website. You can choose whether to install the base code on Pinterest or Google Tag Manager.
- Log in to your business account
- Click Ads, then select Conversions
- Click Get started under Install the Tag
- Select Google Tag Manager in the Partner integration window, then click Continue
- In the new tab that opens, select a Google account to log in to and click Allow
- If the info below Account and Container is correct, click Continue
- Enter an optional name for your tag and turn on Automatic Enhanced Match or optionally Metadata Enrichment
- Click Install Tag
- Go to Google Tag Manager and click Add a new tag.
- Enter a name for your tag at the top of the screen where it says Untitled Tag.
- Click Tag Configuration.
- Click
the search alt icon in the top-right corner of the page and start typing Pinterest in the search bar. Click Pinterest Tag when it appears below. - Enter your Pinterest tag ID from your Pinterest account’s Conversions page below Tag ID.
- You can also choose a variable to reuse by clicking plus icon next to Tag ID.
- To use Enhanced Match, click the plus icon below Hashed Email and choose your website's data layer variable for email or create a new one.
- Click Triggering and select the trigger that will track every page of your site, such as All Pages, then click Add in the top-right corner.
- Click Save in the top-right corner.
Event codes let you measure the impact your Pinterest ads have on certain onsite actions. They’re also necessary to launch campaigns that will automatically optimize specific events such as conversion campaigns or dynamic retargeting ads. Event codes are also necessary for accessing surfaces such as
Before you install your first event code, you have to install the base code. The base code should always be set up to fire before the event code. You can only install event codes in Google Tag Manager.
- Depending on what you choose, optional inputs will appear. You can enter a value or click the brick icon and choose the data layer variable for the relevant event data.
- For AddToCart, Checkout, and PageVisit event tags, you can add a dynamic variable for product_id event data for audience creation and retargeting.
- The product_id dynamic variable doesn't need any extra syntax, it just needs to populate the ID that matches your inventory.
- If you expect or want to send multiple product_ids at the same time, you’ll need to set up a data layer variable to use our line_items syntax. See below for the structure and an example of a line_items array.
You can enter multiple product IDs at once to track traffic on all of your products.


In order for this to work, you'll also need to create a
<script>
dataLayer = [{
items : [
{
product_id: '1414',
product_category: 'Shoes'
},
{
product_id: 'ABC',
product_category: 'Toys'
}
]
}];
</script>
Once you've added the data layer, deploy or save your website's code.
You can also include event ID information for deduplication purposes.
- Note: The Value should be dynamically generated for each event in order to be unique to the event
If you’re using a