DAT K2 Conversion Tag Example
This is a conversion tag code example for the DAT K2 platform:
<img src='https://r.datplatform.com/adx-dir-d/action?nid=7&adv=12508&adx_txn_id=[adx_txn_id]&payout=[adx_payout]' border='0' width='1' height='1'>
<script src='https://r.datplatform.com/adx-dir-d/action?nid=7&adv=12508&adx_txn_id=[adx_txn_id]&payout=[adx_payout]' type='text/javascript'></script>
Macro Variables Explanation
The code contains macro variables such as [adx_txn_id] and [adx_payout].
When a user clicks your ad, the platform generates a unique transaction ID value. This transaction ID value will be automatically assigned to the [adx_txn_id] macro by the platform. It is not something you can define yourself.
How to Use This Tag for Advertisers
1. Place the Conversion Pixel on Your Conversion Page
- When a user clicks on your creative, the platform will replace the macro value
[adx_txn_id]in your landing page URL with a unique transaction ID. - It’s essential to ensure that your system captures this
[adx_txn_id]value from the landing page URL. This typically involves setting up your landing page to store this parameter (e.g., in a cookie, session, or database) when a user arrives via the ad click. - Then, when the user completes a conversion action (like making a purchase or signing up) and reaches the conversion page (e.g., a “Thank You” page), your system needs to include this stored
[adx_txn_id]value in the conversion tracking tag. - You can also optionally replace the
[adx_payout]macro with the actual payout amount if needed.
2. Conversion Data Recording
- When the user arrives at your thank you page and loads the conversion pixel, our server will use the transaction ID passed via your landing page URL and saved on your end to record the conversion against the impression.
- You will then know which placement on which domain generated the conversion, and which specific creative the user clicked on. This information will be available in your campaign statistics.