Supported Keys for Pinterest API for Conversions
See what events and data can be passed to Pinterest API for Conversions once the integration has been set up. Use API Reference page to fill out the required and recommended data parameter fields and see how your payload should be structured.
The list of supported keys is in this article is subject to change. For the most up-to-date list of supported keys, see Pinterestās documentation.
Event Keys
| Property | Description |
|---|---|
event_namestring Required | The type of the user event. Please use the right event_name otherwise the event wonāt be accepted and show up correctly in reports. - add_to_cart- checkout- custom- lead- page_visit- search- signup- view_category- watch_video |
event_idstring Required | A unique id string that identifies this event and can be used for deduping between events ingested via both the conversion API and Pinterest tracking. Without this, event's data is likely to be double counted and will cause report metric inflation. Third-party vendors make sure this field is updated on both Pinterest tag and Conversions API side before rolling out template for Conversions API. |
event_timestring Required | The time when the event happened. Unix timestamp in seconds. |
event_source_urlāāstring Required | URL of the web conversion event. |
āāuser_dataāā{} Required | See list of user data keys. |
āācustom_dataāā{} | See list of custom data keys. |
app_idstring | The app store app ID. |
app_namestring | Name of the app. |
app_version string | Version of the app. |
device_brand string | Brand of the user device. |
device_carrierstring | User device's mobile carrier. |
device_model string | Model of the user device. |
device_typestring | Type of the user device. |
os_versionstring | Version of the device operating system. |
wifiboolean | Whether the event occurred when the user device was connected to wifi. |
languagestring | Two-character ISO-639-1 language code indicating the user's language. |
User Data Keys
| Property | Description | Example |
|---|---|---|
partner_idstring Required | ATS Envelope value. | 'BVOBHAIrEaLRRbGFusikzEyEOEGKVZ0kNPCgRDSoujeTtkmK2OQEGwW7F1lkkQebcPAgAKK58m5A35' |
ctarray of strings | Plaintext or sha256 hashes of user's city, in lowercase, and without spaces or punctuation. User residency city (mostly billing). | 'london' |
starray of strings | Plaintext or sha256 hashes of user's state, given as a two-letter code in lowercase. User residency state (mostly billing). | 'ca' |
countryarray of strings | Plaintext or SHA-256 hashes of two-character ISO-3166 country code indicating the user's country. | 'US' |
click_idstring | The unique identifier stored in \_epik cookie on your domain or &epik= query parameter in the URL. We highly recommend this on at least checkout events. It may improve reporting performance such as ROAS/CPA. |
Custom Data Keys
You can send additional data by passing the parameters below under custom_data.
| Property | Description | Example |
|---|---|---|
currencystring | The ISO-4217 currency code. If not provided, we will default to the advertiser's currency set during account creation. Your campaign performance needs this field to report right ROAS/CPA. Required when using checkout events | 'USD' |
valuestring | Total value of the event. Accepted as a string in the request; it will be parsed into a double. For example, if there are two items in a checkout event, the value should be the total price. We recommend to use pre-tax, pre-shipping final value. Required when using checkout events | '142.54' |
content_idsarray of strings | List of products IDs. We recommend using this if you are a merchant for PageVisit, AddToCart and Checkouts. For more details, see "Install the Pinterest tag" section here. | ['ABC123', XYZ789'] |
content_namestring | The name of the page or product associated with the event. | 'lettuce' |
content_categorystring | The category of the content associated with the event. | 'grocery' |
content_brandstring | The brand of the content associated with the event. | 'brand' |
contentsarray of objects | A list of objects containing information about products, such as price and quantity. We recommend using this if you are a merchant for PageVisit, AddToCart and Checkouts. For more details, see "Install the Pinterest tag" section here. Supported objects are: - id - stringThe id of a product. Example: 'red-pinterest-shirt-logo-1'- item_price - stringThe price of a product. Accepted as a string in the request; it will be parsed into a double. This is the original item value before any discount. Example: '1325.12'- quantity - integer The amount of a product Example: 5 | [] |
num_itemsinteger | Total number of products of the event. For example, the total number of items purchased in a checkout event. We recommend using this if you are a merchant for AddToCart and Checkouts. For more details, see "Install the Pinterest tag" section here. | 2 |
order_idstring | The order ID. We recommend sending order_id to help us deduplicate events when necessary. This also helps to run other measurement products at Pinterest. | 'order1234' |
search_stringstring | The search string related to the user conversion event. | 'lettuce' |
Updated 12 months ago