Back to Blog
Technical

Pinterest Tag GDPR Consent: Complete Guide

GetCookies TeamDecember 29, 20248 min read
PinterestAdvertisingGDPRConsent

TLDR: Pinterest Tag requires consent for EU users. GetCookies blocks it until marketing consent using a simple data attribute. Perfect for e-commerce and lifestyle brands.

Read full summary Pinterest advertising is powerful for e-commerce. But like all tracking pixels, the Pinterest Tag requires proper consent handling in the EU. This guide shows how to implement it correctly with GetCookies. *Summary by Claude AI*
## Pinterest Ads + E-commerce = Powerful Pinterest is where purchase intent lives. Users come to discover, plan, and buy. For e-commerce and lifestyle brands, Pinterest ads convert. But there's a catch: Pinterest Tag requires consent in the EU, just like Meta and TikTok. ## Pinterest's Consent Options Pinterest Tag supports limited data processing: ```javascript // Set limited data processing pintrk('set', { np: 'ldu' }); ``` But the cleaner approach is blocking the tag entirely until consent. ## The GetCookies Implementation ```html ``` The `type="text/plain"` blocks execution. GetCookies activates it after marketing consent. ## Event Tracking After consent, track standard Pinterest events: ```javascript // Page visit pintrk('page'); // Add to cart pintrk('track', 'addtocart', { product_id: 'SKU123', product_name: 'Awesome Product', value: 29.99, currency: 'USD' }); // Checkout pintrk('track', 'checkout', { value: 99.99, currency: 'USD', order_quantity: 3 }); // Search pintrk('track', 'search', { search_query: 'summer dresses' }); ``` ## Dynamic Loading Pattern ```javascript window.addEventListener('getcookies:consent', (e) => { if (e.detail.marketing && !window.pinterestLoaded) { loadPinterestTag(); window.pinterestLoaded = true; } }); function loadPinterestTag() { !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'); } ``` ## Pinterest Conversions API (Server-Side) For better attribution, combine with server-side tracking: ```python import requests url = "https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/events" headers = { "Authorization": "Bearer YOUR_ACCESS_TOKEN", "Content-Type": "application/json" } payload = { "data": [{ "event_name": "checkout", "action_source": "web", "event_time": 1640000000, "event_id": "unique_event_id", "user_data": { "em": ["hashed_email"] }, "custom_data": { "value": "99.99", "currency": "USD" } }] } response = requests.post(url, headers=headers, json=payload) ``` ## Testing 1. Install Pinterest Tag Helper extension 2. Load site in incognito 3. Before consent: Tag should NOT fire 4. After marketing consent: Events should appear ## Best Practices 1. **Use data-cookieconsent attribute** - Simplest approach 2. **Combine with Conversions API** - Better attribution 3. **Use event_id for deduplication** - When using both browser and server 4. **Test with Pinterest Tag Helper** - Verify implementation ## The Bottom Line Pinterest Tag needs consent management. GetCookies makes it simple: 1. Add the `data-cookieconsent="marketing"` attribute 2. Set `type="text/plain"` on the script 3. Done Your Pinterest ads work. Your site is compliant. --- **Ready to make your Pinterest Tag compliant?** [Set up GetCookies in 5 minutes](https://getcookies.co)
G

GetCookies Team

Contributing writer at GetCookies, specializing in privacy compliance, consent management, and digital marketing optimization.

Ready to Simplify Cookie Consent?

GetCookies makes GDPR, CCPA, and global privacy compliance effortless. Get started today.