Dynamic tracking parameters
Pinterest supports dynamic tracking parameters, which are placeholder text that start and end in curly brackets and can be added to URLs. These enable advertisers to collect additional information from Pinterest on a click for campaign tracking purposes.
Supported dynamic parameters for all campaigns:
- {campaignid}
- {campaign_name}
- {adgroupid}
- {adgroupname}
- {adid} - the pin promotion id
- {device} - ‘t’, ‘c’, or ‘m’ for tablet, computer or mobile
Example: a landing URL provided by a retailer may look like this:
retailer.com/mens-clothing/?cid={campaignid}
if the Pinterest campaign id is 1234, Pinterest will serve this URL as:
retailer.com/mens-clothing/?cid=1234
Supported dynamic parameters for Search Campaigns:
- {keyword} - the percent-encoded keyword string (e.g. running%20shoes) that matched the promoted pin
- {keyword_id} - the keyword ID that matched the promoted pin
Supported dynamic parameters for Shopping Campaigns:
- {product_name} - product name
- {product_id} - product ID
- {product_partition_id} - product group ID
- {promoted_product_group_id}: product group ID within Ads Manager
- {product_partition_id} - Pinterest promoted product group ID
- {lpurl} - Used only in the campaign structure it will be replaced by the URL from either “ad_link” or “link” field in the feed. * {lpurl} will automatically be encoded as well as encode the following characters: ?, =, ", #, \t, ', and [space] when placed after or in a tracking URL. ** when placed before any tracking {lpurl} will not be encoded.
- link field URL: http://hello.world.com/shoes-sneakers
- Tracking URL: https://ad.tracker.com
- {lpurl}?http://ad.tracker.com becomes http://hello.world.com/shoes-sneakers?https://ad.tracker.com
- https://ad.tracker.com?{lpurl} becomes https://ad.tracker.com?http%3A%2F%2Fwww.helloworld.com%2Fshoes-sneakers
Please note that the {keyword} parameter is not supported for tracking links on any ads.
Note that dynamic parameters we don’t support will be ignored - for example if the retailer provides this URL: retailer.com/mens-clothing/?cid={CAMPAIGN-ID} we will ignore the tracking parameter and just serve the URL as retailer.com/mens-clothing/?cid={CAMPAIGN-ID}
Source: help.pinterest.com/en/business/article/third-party-and-dynamic-tracking