Help Center Manage Your Account Banner, Richmedia, and Text Ads

How do I track clicks for HTML or Rich-Media ads?

To track clicks for HTML ads, check "Automatically process RichMedia/HTML code to track clicks" below the HTML code box. This feature can track multiple hyperlinks, forms, client-side image maps and Flash ads with clickTAG parameter. For a third-party ad tag, a click macro is often needed to track clicks.

Third-Party Ad Tag

If the HTML code points to a third-party JavaScript or IFRAME tag, we need that third-party ad server to support the external/3rd-party click tracking feature via a click macro. The reason is that the JavaScript/IFRAME ad request will generate their own code, which is dynamic and changes on every call. For these calls, we cannot modify or control the code generated by the external ad server.

For example: Google AdSense's ad tag dynamically generates text link ads on every page load. We cannot alter any code generated by AdSense because it is against Google's legal terms and will cause issues with your account with Google. Unless third-party click tracking is officially supported by Google AdSense, these clicks are not track-able using the industry-standard click macro method.

Third-party click tracking feature allows AdSpeed to track click served by other ad servers. This feature is reciprocal between ad servers. Here is the process flow:

  1. Overview: 3rd Party Ad Server -> AdSpeed -> Destination URL
  2. When a visitor clicks on the ad, the 3rd party ad server records this click first.
  3. It then passes on to AdSpeed's click tracker, which in turn, logs this click into our system
  4. AdSpeed redirects visitor to the destination URL

Rich-Media and HTML Ad Wizard

You can use our ad wizard when creating/editing the third party ad to enable click tracking in both AdSpeed ad server and the other ad server. These are the steps to enable click tracking for a Rich-Media/HTML ad
Convert an Existing Rich-Media Ad
  • Click on the ad name
  • Click Edit tab
  • Click on the link "Rich Media HTML Wizard" below the text box
  • Click on the link "Prepare a third-party ad tag for click tracking"
  • Choose one of the third-party ad servers
  • Enter the ad tag provided by your client (the advertiser or the ad agency)
  • Replace the existing HTML code for this ad with the new code generated from the wizard
Create a New Rich-Media Ad
  • Follow the menu Ads / Create a new Ad
  • Choose the ad type to be "Rich-Media Ad"
  • Click on the "Rich Media HTML Wizard" link below the text box
  • Click on the link "Prepare a third-party ad tag for click tracking"
  • Choose one of the third-party ad servers
  • Enter the ad tag provided by your client (the advertiser or the ad agency)
  • Copy and paste the code generated by the wizard into the new Rich-Media ad

Click Tracking Verification

Since there are multiple providers and also multiple tag versions from the same provider, you should always test the ad for proper click tracking in both ad servers.
  1. Preview the ad via our interface or your own test page
  2. Make test click(s) on the ad
  3. Make sure it goes to the right landing page with no error
  4. View the Overall report for the ad. The click counter should increase in real-time according to your test click(s)
  5. Verify the test click(s) with the ad provider. There may be a delay from their report if it is not in real-time


  • You need to ask the other ad server if they support external/3rd party click tracking.
  • If they do, you also need to know the appropriate placement of this special parameter often called "click macro".
  • When adding a RichMedia/HTML ad into our system, you have the HTML ad tag provided by the external ad server. You need to place the AdSpeed's click tracker macro at the appropriate location into the 3rd party ad tag. Due to the variety of ad servers, there are several click tracking macros available, depending on the third-party ad server: [ASClickTrackerEncoded], [ASClickTrackerEncoded2] and [ASClickTrackerRaw]. Please contact us if you need more information about a specific variable.
  • When AdSpeed serves this ad, it will replaced the click macro (eg: [ASClickTrackerEncoded]) a dynamic click tracker link. The destination URL should immediately follow this link (it means you should often end the source URL with this tag).

Sample Usage - DoubleClick

<iframe src="http://.../Bxx;sz=728x90;ord=[timestamp]?" width=728...
<script src="http://.../Bxx;sz=728x90;ord=[timestamp]?"></script>

would become
<iframe src="http://.../Bxx;sz=728x90;ord=[timestamp];click=[ASClickTrackerEncoded]" width=728...
<script src="http://.../Bxx;sz=728x90;ord=[timestamp];click=[ASClickTrackerEncoded]">

Sample Usage - Atlas

For Atlas ad tags, you can use the parameter click=[ASClickTrackerRaw] (or click=[ASClickTrackerEncoded], depending on the ad format). For example:
<iframe src="">...</iframe>

would become

<iframe src="[ASClickTrackerRaw]">...</iframe>

Sample Usage - Mediaplex

<script language="JavaScript" src="[CACHEBUSTER]&mpvc="></script>

would become

<script language="JavaScript" src="[timestamp]&mpvc=[ASClickTrackerEncoded2]"></script>

Sample Usage - EyeBlaster/MediaMind

<script src=""></script>

would become

<script src="[ASClickTrackerEncoded]"></script>

Sample Usage - PointRoll

var pr_redir="$CTURL$";

would become

var pr_redir="[ASClickTrackerEncoded]$CTURL$";

Sample Usage - AdTech/AOL

Use [ASClickTrackerEncoded] (or [ASClickTrackerRaw] for certain ad formats). Other ad domains for AOL include "" and "".
<script language="javascript">
document.write('<scr'+'ipt src=";sub1=javascript;misc=[timestamp];rdclick=[ASClickTrackerEncoded]"></scri'+'pt>');
<a href=";loc=300;misc=[timestamp]" target="_blank"><img src=";loc=300;misc=[timestamp]" border="0" width="300" height="250"></a>

Technical Support

If you need assistance in adding a click macro, please create a Rich-Media ad using the provided third-party ad tag and then send us its name or ID.

Other Articles in Banner, Richmedia, and Text Ads

Information about different ad formats, dimension, sizes, and specifications.

Cannot find an answer for your question? Ask our Customer Care team