Help Center Manage Your Account Ad Tag

How can I support click tracking for external ad servers?

This feature is applicable to you if you place AdSpeed's serving code into another ad server and the other ad server wants to track clicks for this ad.

By default, the other system should be able to record impressions without any problem. However, to track clicks for ads generated dynamically through our iframe/javascript code, it requires both ad servers (AdSpeed Ad Server and the external ad server) to support a special parameter, often call a click macro.

Click Macro

The click macro is r=[ExternalClickTrackerLink]
http://g.adspeed.net/...&r=[ExternalClickTrackerLink]

Placing Click Macro into Ad Tag

When generating the serving code for an ad or a zone, you can enter the click macro and the cache-buster macro into the "Custom Parameters" field. For example: if the cache-buster macro is "[RANDOM_NUMBER]" and the click macro is "[ENCODED_CLICK_REDIRECT]" then enter this into the "Custom Parameters":
&cb=[RANDOM_NUMBER]&r=[ENCODED_CLICK_REDIRECT]

How It Works

This feature is reciprocal between ad servers and our system fully supports both sides. Here is the click flow:
  1. Overview: AdSpeed -> External Ad Server -> Destination URL
  2. When a visitor clicks on the ad, AdSpeed records this click first.
  3. AdSpeed passes to the external click tracker, which in turn, logs this click into their system.
  4. The external click tracker finally redirects visitor to the destination URL.

Requirements

The external click tracker (from the other ad server) needs to redirect visitors to the given destination URL after processing the click event. For example:
http://advertserver.com/clicktracker?goto=http://macrophotos.net
It should redirect to http://macrophotos.net after recording this click.

In the serving code generated by AdSpeed Ad Server, you need to add a special parameter r to the IFRAME/JavaScript requests. Format:

http://g.adspeed.net/...&r=[ExternalClickTrackerLink]

Examples:

<iframe src="http://g.adspeed.net/serv/...&amp;r=http://advertserver.com/click?goto=">
...
</iframe>
or 
<script src="http://g.adspeed.net/serv/...&amp;r=http://advertserver.com/click?goto=">
</script>

Example - DoubleClick

You wants to serve a zone through DoubleClick's ad network. For DoubleClick to track clicks, they have a special parameter called "ad server macro" %%CLICK_URL_ESC%% (or %c in certain versions), which would be replaced upon serving by DoubleClick's click tracking link. When generating the ad serving code in AdSpeed, to allow DoubleClick to record clicks before redirect visitors to the destination link, you enter "&r=%%CLICK_URL_ESC%%" into the Custom Parameter field. Then, you can send this serving code to the website to enter into its DoubleClick/DFP ad server.
<script src="http://g.adspeed.net/ad.php?zid=xxx&cb=%%CACHEBUSTER%%&r=%%CLICK_URL_ESC%%"></script>

Technical Support

If you have difficulties implementing this setup, please contact our staff with the external click tracking URL for further assistance.

Other Articles in Ad Tag

This section describes the ad tag (serving code) with basic and advanced settings. It includes common ad serving setup instructions and answers frequently asked questions when integrating the ad tag into your site, blog or app.

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

Related