Enable enhanced match in the JavaScript part of the tag for the Pinterest

To enable enhanced match, modify the Pinterest tag base code to include the em parameter in the pintrk() load function. You do not have to modify any of your event codes. The JavaScript base code becomes:

<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>', {
em: '<EMAIL_ADDRESS>',
});
pintrk('page');
</script>

Replace YOUR_TAG_ID and EMAIL_ADDRESS with your specific information.

To protect user privacy, the email address passed to the pintrk command will be hashed before it’s sent to Pinterest.

Leave a comment

Your email address will not be published. Required fields are marked *