Third Party Click Tracking with OpenX
With OpenX, you can track when users click a third party tag. You can use third party clicking when you load a third party HTML ad into OpenX or when you load OpenX ad code into a third party ad server.
To track clicks for third party ads, do one of the following:
- Select a known third party ad server when you add the banner HTML
- Perform some manual changes to the ad code for unknown third party ad servers
Known third party
To track clicks for a known third party:
- Paste the HTML for the ad in the Banner Properties tab.
- Select the third party from the pull-down menu below the ad HTML as shown in the screenshot.
Unknown third party
If the tag is from an unknown party, you must perform a manual change to the ad code. The third party will supply a mechanism to track clicks which is, typically, a placeholder in the ad code for the click trackng URL. Replace this placeholder with the magic macro {clickurl}.
Example
Following is an example third party click tracking tag:
<!--!JavaScript General Redirect Tag // Tag for network XX: XXXXXX // Website: WWW.EXAMPLE.COM // Page: Home // Placement: HOME_160x600 (123456) // created at: Jun 18, 2007 11:32:45 AM--> <script language="javascript1.1" src="!http://adserver.adtech.de/addyn|X.X|XX|XXXXXX|X|XXX|ADTECH;loc=XXX; target=_blank;misc=[TIMESTAMP];rdclick="></script> <noscript><a href="!http://adserver.adtech.de/adlink|X.X|XX|XXXXXX|X|XXX|ADTECH;loc=XXX;misc=[TIMESTAMP]" target="_blank"><img src="!http://adserver.adtech.de/adserv|X.X|XX|XXXXXX|X|XXX|ADTECH;loc=XXX; misc=[TIMESTAMP]" border="0" width="160" height="600"></a></noscript> <!-- End of !JavaScript Tag -->
To enable click tracking for this tag, insert the OpenX {clickurl} macro after "rdclick=". OpenX also recommends that you substitute the "{random}" macro for "[TIMESTAMP]" to avoid any issues with client/proxy caching. These changes are made in the following example:
<!--!JavaScript General Redirect Tag // Tag for network XX: XXXXXX // Website: WWW.EXAMPLE.COM // Page: Home // Placement: HOME_160x600 (123456) // created at: Jun 18, 2007 11:32:45 AM--> <script language="javascript1.1" src="!http://adserver.adtech.de/addyn|X.X|XX|XXXXXX|X|XXX|ADTECH;loc=XXX; target=_blank;misc={random};rdclick={clickurl}"></script> <noscript><a href="!http://adserver.adtech.de/adlink|X.X|XX|XXXXXX|X|XXX|ADTECH;loc=XXX;misc={random}" target="_blank"><img src="!http://adserver.adtech.de/adserv|X.X|XX|XXXXXX|X|XXX|ADTECH;loc=XXX; misc={random}" border="0" width="160" height="600"></a></noscript> <!-- End of !JavaScript Tag -->
Tracking clicks for OpenX ads on a third party ad server
When you load tags into an external ad server, OpenX always counts the clicks. However, if you also want to track the clicks in the external system, you must insert the click tracking macro for the external system into the OpenX ad code.
If the tag is for a third party server, to enable click tracking:
- In the Invocation Code tab, scroll to the Preferences section underneath the ad code snippet.
- Select the server for the known third party from the pull-down menu, as shown in the following screenshot:
- Click Refresh to update this preference in the ad code snippet.
OpenX currently provides automatic modification of click tracking macros for three known third parties:
- Generic inserts the placeholder, "INSERT_CLICKURL_HERE", into the ad code for an unknown third party.
- Rich Media - Doubleclick inserts "%c" into the ad code for loading OpenX tags into a Doubleclick server.
- Rich Media - OpenX inserts "{clickurl}" into the ad code for loading OpenX tags into another instance of the OpenX server.
Example
The following screenshot shows example JavaScript ad code before selecting a third party preference:
Note the additional tag on the second line of the ad code, after selecting the generic third party preference:
![]()
