How to Install Pinterest's GDPR Compliant Tag

Attention: Pro Features
This type of Cookie is supported only in the Pro and Reseller versions of My Agile Privacy. Purchase your license and gain access to the entire database of pre-inserted cookies, constantly updated by the experts at My Agile Privacy.
>> Click here and find the plan that suits you best.

Learn how to easily install a GDPR-compliant Pinterest Pixel using the My Agile Privacy WordPress plugin.

Solution 1: Automatic Detection (Recommended)

Take advantage of the advanced Cookie Shield feature included in the plugin. This mode can automatically detect pixel scripts:

  1. Set the Cookie Shield to Learning mode.
  2. Browse your website pages as usual.
  3. The plugin will scan and automatically prepare your configuration.
  4. If necessary, you can further fine-tune the settings afterward.

Manual configuration is also available if you prefer.

Solution 2: Manual Configuration

According to the official Pinterest documentation, the Pinterest Tag code is as follows:

<!-- Pinterest Pixel Base Code -->
<script type="text/javascript">
  !function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(
    Array.prototype.slice.call(arguments))};var
    n=window.pintrk;n.queue=[],n.version="3.0";var
    t=document.createElement("script");t.async=!0,t.src=e;var
    r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)}}("https://s.pinimg.com/ct/core.js");
  pintrk('load', 'YOUR_TAG_ID');
  pintrk('page');
</script>
<noscript>
  <img height="1" width="1" style="display:none;" alt="" src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&event=init&noscript=1" />
</noscript>
<!-- End Pinterest Pixel Base Code -->

Important: In the code above, you'll see YOUR_TAG_ID in these lines:

pintrk('load', 'YOUR_TAG_ID');
<img height="1" width="1" style="display:none;" alt="" src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&event=init&noscript=1" />

Replace YOUR_TAG_ID with the unique ID found in your Pinterest business account admin panel.

How to Add the Code in My Agile Privacy

  1. In your WordPress admin menu, go to My Agile Privacy → Cookie List.
  2. Find the cookie named "Pinterest Conversion Tag".
  3. Paste your customized Pinterest Tag code into the Html Raw field, as shown below:

Pinterest Tag insertion screenshot
Click the blue Publish button in the upper right corner to save your changes.

Test the Installation & Consent Workflow

To ensure GDPR compliance, the Pinterest Tag will not be active until a user gives consent.

  • The tag will only work after the user clicks "I agree" or enables the Pinterest cookie in the Cookie Panel under "Customize".

How to Track Conversions on Specific Pages

If you want to track conversions or specific events (e.g., newsletter sign-ups, purchases), you'll need to insert additional tracking code on the relevant pages. For example, on your thank-you page, use:

<script>
  pintrk('track', 'checkout');
</script>

This event code will only be executed once the user has accepted the relevant cookies, ensuring full GDPR and Cookie Law compliance.


By following these steps, you can configure Pinterest Tag tracking at an advanced level, remain compliant with privacy laws, and improve your conversion measurement.

Download the free guide

Fill out the form and get immediate access to the guide in PDF format.
Mockup del pdf della guida
Loading in Progress...
Request successfully sent. You will be redirected to the download page shortly
By submitting this form I declare that I have read the privacy policy and authorize the Owner to respond to me for what is expressed in point a of the privacy policy
Warning: Your Cookie choices may not allow the form to be submitted.
Click here to review your preferences.
buy now My Agile Privacy - compliant in less than 3 minutes
a Formula Agile SRL project
COE / TAX ID 31366
Via Tre Settembre, 99 - 47891 Dogana - San Marino - RSM
Share capital 26'000€
For assistance: info[at]myagileprivacy.com
GDPR and privacy present complexities that extend beyond achieving website compliance. Compliance obligations span across all business aspects and necessitate expert analysis.
When it comes to implementing Banners and Policies, trust My Agile Privacy—the only solution that excludes unnecessary implementations not mandated by regulations.
Logo CMP partner GoogleLogo CMP partner GoogleLogo CMP partner GoogleLogo IAB Europe approvedLogo IAB Europe approved