{"id":9093,"date":"2022-03-31T15:00:00","date_gmt":"2022-03-31T13:00:00","guid":{"rendered":"https:\/\/www.myagileprivacy.com\/how-to-install-pinterests-gdpr-compliant-tag\/"},"modified":"2026-01-02T14:08:46","modified_gmt":"2026-01-02T13:08:46","slug":"how-to-install-pinterests-gdpr-compliant-tag","status":"publish","type":"post","link":"https:\/\/www.myagileprivacy.com\/en\/how-to-install-pinterests-gdpr-compliant-tag\/","title":{"rendered":"How to Install Pinterest's GDPR Compliant Tag"},"content":{"rendered":"<p>Learn how to easily install a GDPR-compliant Pinterest Pixel using the <strong>My Agile Privacy<sup>\u00ae<\/sup><\/strong> WordPress plugin.<\/p>\n<h2>Solution 1: Automatic Detection (Recommended)<\/h2>\n<p>Take advantage of the advanced <strong>Cookie Shield<\/strong> feature included in the plugin. This mode can automatically detect pixel scripts:<\/p>\n<ol>\n<li>Set the Cookie Shield to <strong>Learning<\/strong> mode.<\/li>\n<li>Browse your website pages as usual.<\/li>\n<li>The plugin will scan and automatically prepare your configuration.<\/li>\n<li>If necessary, you can further fine-tune the settings afterward.<\/li>\n<\/ol>\n<p>Manual configuration is also available if you prefer.<\/p>\n<h2>Solution 2: Manual Configuration<\/h2>\n<p>According to the <a href=\"https:\/\/help.pinterest.com\/en\/business\/article\/set-up-the-pinterest-tag\" target=\"_blank\" rel=\"noopener\">official Pinterest documentation<\/a>, the Pinterest Tag code is as follows:<\/p>\n<pre><code class=\"language-javascript\" data-line=\"\">&lt;!-- Pinterest Pixel Base Code --&gt;\n&lt;script type=&quot;text\/javascript&quot;&gt;\n  !function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(\n    Array.prototype.slice.call(arguments))};var\n    n=window.pintrk;n.queue=[],n.version=&quot;3.0&quot;;var\n    t=document.createElement(&quot;script&quot;);t.async=!0,t.src=e;var\n    r=document.getElementsByTagName(&quot;script&quot;)[0];r.parentNode.insertBefore(t,r)}}(&quot;https:\/\/s.pinimg.com\/ct\/core.js&quot;);\n  pintrk(&#039;load&#039;, &#039;YOUR_TAG_ID&#039;);\n  pintrk(&#039;page&#039;);\n&lt;\/script&gt;\n&lt;noscript&gt;\n  &lt;img height=&quot;1&quot; width=&quot;1&quot; style=&quot;display:none;&quot; alt=&quot;&quot; src=&quot;https:\/\/ct.pinterest.com\/v3\/?tid=YOUR_TAG_ID&amp;event=init&amp;noscript=1&quot; \/&gt;\n&lt;\/noscript&gt;\n&lt;!-- End Pinterest Pixel Base Code --&gt;\n<\/code><\/pre>\n<p><strong>Important:<\/strong> In the code above, you'll see <code class=\"\" data-line=\"\">YOUR_TAG_ID<\/code> in these lines:<\/p>\n<pre><code class=\"language-javascript\" data-line=\"\">pintrk(&#039;load&#039;, &#039;YOUR_TAG_ID&#039;);<\/code><\/pre>\n<pre><code class=\"language-markup\" data-line=\"\">&lt;img height=&quot;1&quot; width=&quot;1&quot; style=&quot;display:none;&quot; alt=&quot;&quot; src=&quot;https:\/\/ct.pinterest.com\/v3\/?tid=YOUR_TAG_ID&amp;event=init&amp;noscript=1&quot; \/&gt;<\/code><\/pre>\n<p>Replace <strong>YOUR_TAG_ID<\/strong> with the unique ID found in your <strong>Pinterest business account admin panel<\/strong>.<\/p>\n<h3>How to Add the Code in My Agile Privacy<sup>\u00ae<\/sup><\/h3>\n<ol>\n<li>In your WordPress admin menu, go to <em>My Agile Privacy<sup>\u00ae<\/sup> \u2192 Cookie List<\/em>.<\/li>\n<li>Find the cookie named <strong>\"Pinterest Conversion Tag\"<\/strong>.<\/li>\n<li>Paste your customized Pinterest Tag code into the <strong>Html Raw<\/strong> field, as shown below:<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-9495\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en.jpg\" alt=\"Pinterest Tag insertion screenshot\" width=\"1000\" height=\"304\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en-300x91.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en-768x233.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><br \/>\nClick the blue <strong>Publish<\/strong> button in the upper right corner to save your changes.<\/p>\n<h3>Test the Installation &amp; Consent Workflow<\/h3>\n<p>To ensure GDPR compliance, the Pinterest Tag will not be active until a user gives consent.<\/p>\n<ul>\n<li>The tag will only work after the user clicks \"I agree\" or enables the Pinterest cookie in the Cookie Panel under \"Customize\".<\/li>\n<\/ul>\n<hr \/>\n<h2>How to Track Conversions on Specific Pages<\/h2>\n<p>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:<\/p>\n<pre><code class=\"language-javascript\" data-line=\"\">&lt;script&gt;\n  pintrk(&#039;track&#039;, &#039;checkout&#039;);\n&lt;\/script&gt;\n<\/code><\/pre>\n<p>This event code will only be executed once the user has accepted the relevant cookies, ensuring full GDPR and Cookie Law compliance.<\/p>\n<hr \/>\n<p>By following these steps, you can configure Pinterest Tag tracking at an advanced level, remain compliant with privacy laws, and improve your conversion measurement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to easily install a GDPR-compliant Pinterest Pixel using the My Agile Privacy\u00ae 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: Set the Cookie Shield to Learning mode. Browse your website pages as usual. The plugin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8789,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[33],"tags":[34],"class_list":["post-9093","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cookies","tag-premium"],"acf":{"visibilita_box_autore":false,"autore_associato":null,"elenco_faq_articolo":null,"url_esterno":"","titolo":"Pinterest"},"_links":{"self":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/comments?post=9093"}],"version-history":[{"count":7,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9093\/revisions"}],"predecessor-version":[{"id":15134,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9093\/revisions\/15134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media\/8789"}],"wp:attachment":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media?parent=9093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/categories?post=9093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/tags?post=9093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}