Ads exposure tracking
You can track the exposition of users to the different kind of Ads format that exist today:
  • Display Ads: All Ads that are either static image/animations or HTML5 animated Ads
  • Video Ads: All Video Ads that the User can see through a marketing campaign
All Ads tracking is done using Pixels and Click Tracking URLs.
You should consider using this feature to get ad view and ad click directly within your datamart when using DSPs .
Activities tracked through this method will be of DISPLAY_AD $type and NO_SESSION $session_status. See User activity object for more information.

Associated user events

There are two predefined user events that should be tracked during the exposition of a user to an Ad :
event name
tracking method
description
$ad_view
Pixel
The 'view/impression' of the Display Ad to the User
$ad_click
Click Tracking URL
The 'click' of the Ad by the User

Display Ad Pixel

Use the following URL in your tracking pixel to send an $ad_view event to the platform.
1
https://events.mediarithmics.com/v1/touches/pixel? \
2
$ev=$ad_view& \
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=<CAMPAIGN_TECHNICAL_NAME>&
5
$scatn=<AD_GROUP_TECHNICAL_NAME>&
6
$crtn=<CREATIVE_TECHNICAL_NAME>&
7
$cb=<CACHEBUSTER>&
8
... any custom property
Copied!
field
type
description
$ev
String
The event name. $ad_view for Display Ad impression tracking
$dat_token
String
The token (not the ID) of the datamart in the mediarithmics platform.
$catn
String
Campaign technical name
$scatn
String
Sub-campaign technical name
$crtn
String
Creative technical name
$cb
String
The cache buster parameter. It should contain a random string. optional
$cuid
String
User account identifier of the user
$uaid
String
Mobile identifier of the user to identify the User agent
$email_hash
String
Email Hash identifier of the user
$comp_token
String
Compartment token (not the ID)
any custom property name
Any Type
Any custom property. optional

Ad Click tracking URL

Use the following click-tracking URL to send an $ad_click event to the platform.
1
https://events.mediarithmics.com/v1/touches/click?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=<CAMPAIGN_TECHNICAL_NAME>&
5
$scatn=<AD_GROUP_TECHNICAL_NAME>&
6
$crtn=<CREATIVE_TECHNICAL_NAME>&
7
$cb=<CACHEBUSTER>&
8
$redirect=<CLICK_URL>
9
... any custom property
Copied!
field
type
description
$ev
String
The event name. $ad_click for Display Ad click tracking
$dat_token
String
The id of the audience datamart in the mediarithmics platform.
$redirect
String
The redirect url. This string should URL Encoded. (RFC 3986)
$catn
String
Campaign technical name
$scatn
String
Sub-campaign technical name
$crtn
String
Creative technical name
$cb
String
The cache buster parameter. It should contain a random string. optional
$cuid
String
User account ID identifier of the user
$email_hash
String
Email Hash identifier of the user
$comp_token
String
Compartment token (not the ID)
any custom property name
Any Type
Any custom property. optional
If you want to integrate with an external DSP / Ad Server such as Google Ad Manager or App Nexus, you can use the ids of the creative ad groups and campaign from your external DSP as technical names. See the integrations below for examples.

Google Ad Manager (ex DFP) integration

1
https://events.mediarithmics.com/v1/touches/pixel?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=${INSERTION_ORDER_ID}&
5
$scatn=${CAMPAIGN_ID}&
6
$crtn=${CREATIVE_ID}&
7
$cb=${CACHEBUSTER}
Copied!
1
https://events.mediarithmics.com/v1/touches/click?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=${INSERTION_ORDER_ID}&
5
$scatn=${CAMPAIGN_ID}&
6
$crtn=${CREATIVE_ID}&
7
$cb=${CACHEBUSTER}&
8
$redirect=${CLICK_URL_ENC}
Copied!

Google Ad Manager 360 (ex DBM) integration

1
https://events.mediarithmics.com/v1/touches/pixel?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=%ebuy!&
5
$scatn=%eaid!&
6
$crtn=%ecid!&
7
$cb=%%CACHEBUSTER%%
Copied!
1
https://events.mediarithmics.com/v1/touches/click?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=%ebuy!&
5
$scatn=%eaid!&
6
$crtn=%ecid!&
7
$cb=%%CACHEBUSTER%%&
8
$redirect=<CLICK_URL>
Copied!

App Nexus integration

1
https://events.mediarithmics.com/v1/touches/pixel?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=<CAMPAIGN_TECHNICAL_NAME>&
5
$scatn=<AD_GROUP_TECHNCIAL_NAME>&
6
$crtn=${CREATIVE_ID}
Copied!
1
https://events.mediarithmics.com/v1/touches/click?
2
$ev=$ad_click&
3
$dat_token=<DATAMART_TOKEN>&
4
$catn=<CAMPAIGN_TECHNICAL_NAME>&
5
$scatn=<AD_GROUP_TECHNCIAL_NAME>&
6
$crtn=${CREATIVE_ID}&
7
$cb=${CLICK_URL_ENC}&
8
$redirect=<CLICK_URL>
Copied!

Video Ad Tracking

Basic video ad tracking can be achieved by integrating the display ad pixel (with $ad_view events) and the click-tracking URL (with $ad_click events) into your video ad format.
For more advanced capabilities, a specific integration can be setup based on the visit pixel (with custom completion events) and an Activity Analyzer. Please advise with your Account Representatives during the design phase.