Are you wanting to add your Pinterest Conversion Tag in your popup? It’s easy with our Success Triggered Scripts feature! Follow this guide to learn how to automatically trigger your Pinterest Conversion Tag upon submission of your OptinMonster campaigns.
- Why Use the Pinterest Conversion Tag?
- How to Add the Pinterest Conversion Tag
Why Use the Pinterest Conversion Tag?
A prime example of when to use the Pinterest Conversion Tag with your campaigns is when you display a campaign only if the visitor is referred from Pinterest. When that visitor successfully submits the campaign, the Pinterest Conversion Tag is fired.
In this guide, we’ll walk you through what you need to know to add your conversion tag from Pinterest using the Success Triggered Scripts field in the campaign Builder.
om-trigger-conversionclass to the submit button field so OptinMonster knows when to fire the scripts inside the Success Triggered Scripts field. Learn more about using this class with the Custom HTML integration or Canvas.
How to Add the Pinterest Conversion Tag
The following steps will walk you through adding the Pinterest Conversion tag to your campaign.
Step 1 – Create Conversion Tag
Login to your Pinterest Ads Manager account, then navigate to the Ads » Conversion tracking » Create Tag.
Name your tag and click Generate Code.
Step 2 – Copy and Paste Conversion Tag
Copy the Pinterest tag code and paste it within the <head> </head> tags of the page or website or you want to track. Note the text in red. It is your TAG ID, and will be used in the next step.
Step 4 – Copy and Paste Action Code to Campaign
To get the benefits of conversion tracking, you’ll need to add one of the Pinterest action codes to the Success Triggered Scripts field of the campaign you are tracking.
There are several types of Pinterest event actions you can track.
For this example, we are going to use the Page Visit event.
If you’d like to use one of the other action codes, please be sure to view the example script for that code in the Pinterest help documentation. The final action code for other action events will be different from the Page Visit example in this tutorial.
Below is an example of the full script you would add to the Success Triggered Scripts area of your campaign.
<script>pintrk('track', 'pagevisit'); </script> <noscript> <img height="1" width="1" style="display:none;" alt=""src="https://ct.pinterest.com/v3/?tid=YOURTAGID&event=pagevisit&noscript=1"/> </noscript>
Paste the script of the action code you’d like to use in the Success Triggered Scripts area of your campaign.
Step 5 – Save Campaign
Finally, Save the campaign. You’ve successfully added the Pinterest Conversion Tag to your campaign!
Interested in creating more targeted campaigns for your visitors? See our guide on how to use OptinMonster’s Referral Detection for advanced lead targeting.
Q: Does it matter what Success Action I have configured for my campaign?
A: No. Regardless of the Success Action configured for your campaign (e.g. close campaign, redirect to another URL, etc.), the Conversion Tag will be fired each time the campaign is successfully submitted.
Q: Are there any legal requirements I need to be aware of when using the Pinterest Conversion Tag on my site?
A: Yes! Please refer to Pinterest’s official guides for the most accurate legal information regarding the use of the Conversion Pixel on your website and within your campaigns: