How do I track products of ad impressions and clicks

Before you start

You can track which products are displayed to customers through ads and which products your customers click.
Products are identified by a product ID. Tracking products will allow getting insights about your products, e.g., the popularity of a product.

Getting started

Product tracking can be done by enhancing tracking URLs with a product ID. A product ID needs to be added to a tracking URL in the form of a query parameter. The following paragraphs give examples on how to prepare tracking URLs to track products and how to query the tracking API to see the product of your clicks.

How to track products with ad impressions

You have to add the product ID as an independent query parameter to the tracking URL that you want to use. Let’s start with an example of a regular ad impression tracking URL:

https://track.example.com/ts/i3621155/tsv?amc=aff.demonet.2209.5310.5173

To add a product ID, place an ampersand sign (&) at the end of the URL and use ‘pid’ as the name of the parameter. Subsequently, add the equal sign and the product ID of the product you want to use.
Let’s say the product ID of the product you want to track is 10004. Your ad impression tracking URL will now look like this:

https://track.example.com/ts/i3621155/tsv?amc=aff.demonet.2209.5310.5173&pid=10004

How to track products with clicks

Just like you track products on ad impressions, you can track them on clicks.

You have to add the product ID as an independent query parameter to the tracking URL that you want to use. Let’s start with an example of a regular click tracking URL:

https://track.example.com/ts/i3621155/tsc?amc=aff.demonet.2209.5310.5173

To add a product ID, place an ampersand sign (&) at the end of the URL and use ‘pid’ as the name of the parameter. Subsequently, add the equal sign and the product ID of the product you want to use.
Let’s say the product ID of the product you want to track is 10004. Your click tracking URL will now look like this:

How to get tracked product IDs of clicks

You can see the products of clicks by querying the Tracking API for raw clicks. Each click item will contain the product ID that was tracked with the click, or the item will contain no product ID if there was none. You can find the documentation of the specific endpoint in the API documentation. To find the documentation, follow the steps below:

  • Log in into the platform

  • Click on “API documentation” in the main menu.

  • In the API documentation, click on Tracking in the top menu.

  • To find the the endpoint description, focus the left menu and click on the group “Traffic”. The endpoints of the group will be displayed. Then click on the endpoint “Raw clicks”.