How do I track click for Flash/SWF ads?

Flash ads (SWF files) should not use a static link for the click button, it should use clickTAG parameter, which is the industry-standard for click tracking. clickTAG is used across all ad servers to track clicks of Flash/SWF ads. Our ad server will ask for the actual click URL when you create the SWF ad in your account.

Conversion

The original ActionScript 2 code for the button instance may look something like this:

If you would like to know more technical details, please review the official instructions from Adobe Flash. For greater compatibility, our system uses "_root.clickTAG" instead of "clickTAG". Because Flash ads can be served within IFRAMEs, it's best to use target "_top" or "_blank" for the getURL function. For better security, the ActionScript code checks for a standard/secure URL (http:// or https://), instead of allowing a possible malicious JavaScript code.

Sample Code

You can view this tutorial to create a SWF ad with clickTAG tracking from scratch. Or you can download these sample Macromedia .FLA files to compare: