| Pinterest API for Conversions | Enable the LDP flag Pass value through field for Pinterest API (v5). For more details, please refer to the . Pass value through field for v1/v3 API if you haven't switched to v5. For more details, please refer to the developer docs for v5, v3, or v1 ( web, mobile in-app, offline events).
for v3/v5 is under custom_data object. for v1 is under event_custom_data object.
|
| Pinterest Tag - JS Tag (browser pixel) | Enable the LDP flag and pass value Add the below script before all event code. Once set in the page, all page loads will include this. Leave and blank or do not include in request payload if you don't have the user's location information.
Note: and values need to be hashed using SHA-256. The below example is for the state of California. <script>
pintrk('set', {
opt_out_type: 'LDP',
st: '4b650e5c4785025dee7bd65e3c5c527356717d7a1c0bfef5b4ada8ca1e9cbe17',
country : '9b202ecbc6d45c6d8901d989a918878397a3eb9d00e8f48022fc051b19d21a1d'
});
</script>
To specifically not to process LDP for events, please empty the array or not include the fields at all in payload: <script>
pintrk('set', {
opt_out_type: '',
st: '',
country: ''
});
</script>
|
| Pinterest Tag - Image Tag | Enable the LDP flag and pass value Add , , in src attribute.
Note: and values need to be hashed using SHA-256. The below example is for the state of California. <noscript>
<img height="1" width="1"
style="display:none;"
alt=""
src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&event=checkout
&pd[opt_out_type]=LDP
&pd[st]=4b650e5c4785025dee7bd65e3c5c527356717d7a1c0bfef5b4ada8ca1e9cbe17
&pd[country]=9b202ecbc6d45c6d8901d989a918878397a3eb9d00e8f48022fc051b19d21a1d
&ed[value]=10.00
&ed[order_quantity]=2
&ed[currency]=USD
&ed[event_id]=YOUR_EVENT_ID
&noscript=1"/>
</noscript>
|
| Upload Conversion with Ads manager | Follow the instructions and guides in our Ads Manager for applying the LDP flag to event
data you upload. |
| API for conversions with third party | For managed measurement partners, partners should follow the instructions in the API for
conversions section and enable this for you. For unmanaged measurement partners, please follow the instructions in the above Pinterest API for conversions section.
|
| Pinterest tag with third party | For non-GTM tag integration, follow the implementation instructions in the above Pinterest Tag, JS Tag, and Image Tag sections.
|
| Upload Conversion with third party | For managed measurement partners, Pinterest has asked the partner to enable this for you. Include the information below to implement the LDP flag with St and Country Value. Note: and values need to be hashed using SHA-256. |
| Mobile measurement partner | Pinterest has asked the partner to enable this for you. Please include the information below to implement the LDP flag. Field : 'opt_out_type' Type: String Value: 'LDP' Required: NO
Note: MMP integrations already include and values.
|