Pinterest Tag
Adds the Pinterest Tag to every page, for Pinterest ads conversions. Visits by administrators aren’t counted.
Before you switch it on: Replace YOUR_TAG_ID with your tag ID from Pinterest Ads > Conversions.
It arrives switched off, even when you install its whole pack with "Switch on after installing".
<!-- Pinterest Tag -->
<script>
!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>
Good to know
In the EU, load it only after consent.
Comes with a rule
It doesn't run for administrators, so your own visits don't count in your statistics. You can change the rule after installing.
In these packs
- More tracking codes: Google Ads, TikTok, LinkedIn, Pinterest, Hotjar, Plausible, site verification and a GA4 purchase event.