Pinterest Tag
Pinterest Tag integration with Consentio
What is Pinterest Tag
A measurement tool for tracking conversions and creating audiences for Pinterest ads. Pinterest Tag allows you to measure campaign effectiveness, create custom audiences and optimise ad delivery on the Pinterest platform.
Cookie category
Pinterest Tag belongs to the marketing category.
| Consentio category | GCM signal |
|---|---|
| marketing | ad_storage, ad_user_data, ad_personalization |
Installation with Consentio
Add the Pinterest Tag code with type="text/plain" and
data-category="marketing" attributes. The Consentio script will activate the tag
only after marketing cookie consent is granted.
<!-- Pinterest Tag -->
<script type="text/plain" data-category="marketing">
!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 fallback -->
<noscript>
<img height="1" width="1" style="display:none"
src="https://ct.pinterest.com/v3/?event=init&tid=YOUR_TAG_ID&noscript=1" />
</noscript>
YOUR_TAG_ID with the actual ID
from Pinterest Ads Manager → Conversions → Tag Manager.
JavaScript API alternative
Dynamically load Pinterest Tag after consent is granted:
Consentio.onConsentChange((consent) => {
if (consent.marketing) {
!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');
}
})
Google Consent Mode v2
Pinterest Tag does not natively support Google Consent Mode v2. Therefore, you must
use script blocking via the type="text/plain" attribute
with data-category="marketing", as described above.
Consentio ensures that the tag only loads after marketing consent is granted. Category mapping:
| Consentio category | GCM signal | Description |
|---|---|---|
| marketing | ad_storage |
Ad storage |
| marketing | ad_user_data |
Sharing user data with advertising platforms |
| marketing | ad_personalization |
Ad personalisation |
Verification
- Open DevTools (F12) and go to the Network tab
- Before granting consent: no requests to
ct.pinterest.com - After granting marketing consent: the tag should send a
pageevent - Verify in Pinterest Ads Manager → Conversions → Tag Manager that the tag appears as active