Mile

Features

Instructions for usage

The Mile analytics adapter requires on-boarding, configuration parameters & addition of an external script that will be supplied to you by your Mile account team. Please reach out to your account team or cs@mile.tech for more information.

Adapter Configuration Options

Name Scope Description Example Type
siteID required Your site ID N8vZLx string
publisherID required Your publisher ID PXfvBq string
logDebug optional Flag to collect debug data pertaining to auctions. Defaults to false false boolean

Example Configuration

import CONSTANTS '../src/constants.json';
// ...
const EVENTS = CONSTANTS.EVENTS
// ...
pbjs.enableAnalytics({
  provider: 'mileAnalytics',
  options: {
    siteID: 'N8vZLx',        // supplied by Mile
    publisherID: 'PXfvBq',   // supplied by Mile
    logDebug: false          // Defaults to false
  },
  includeEvents: [
      EVENTS.AUCTION_INIT,
      EVENTS.BID_RESPONSE,
      EVENTS.AUCTION_DEBUG,
      EVENTS.BID_WON,
      EVENTS.BIDDER_DONE,
      EVENTS.NO_BID,
      EVENTS.BID_TIMEOUT, 
      EVENTS.AUCTION_END
  ]
});