Click Tracking

Document created by pubmatic-archivist on Mar 27, 2017Last modified by catherine.racette on Nov 13, 2017
Version 3Show Document
  • View in full screen mode

Before using PubMatic APIs, first generate the API Token. For more information, refer to Getting Started with PubMatic APIs. 

Note: This document supports a set of APIs for older integrations.

For accurate click tracking, the Demand Partner needs to provide a click tracking MACRO to be placed by name in the HTML URL/JS URL/custom ad tag, which will be replaced with the PubMatic click tracker.

Note: It is mandatory for the Demand Partners to provide the click tracking macro in the URL.

  1. Demand Partner passes a click tracker macro in the creative URL.
  2. PubMatic replaces it with its click tracking URL (URL encoded string).
  3. User clicks the advertisement.
  4. On the click event, Demand Partner’s click tracker calls the PubMatic click tracking URL after appending the associated landing page URL to the click tracking URL
  5. PubMatic gets called for tracking click.
  6. PubMatic redirects to the associated landing page URL appended by Demand Partner.


Note: The macro name and the actual URL here are examples only and should not be used by demand partners integrating into PubMatic’s RTB service.