Prepare Flash Banners for

We use DoubleClick for Publishers by Google (DFP) to serve our banner ads. Flash banners require a clickTAG to be embedded in the file to properly track clicks.

Proper clickTAG implementation:

The clickTAG variable is an industry-standard method of tracking Flash creative clicks; it allows Google to register where an ad was displayed when it was clicked on. Problems with Flash creatives may result from an incorrect clickTAG implementation. To troubleshoot this implementation, make sure that:

  • You have inserted the clickTAG in the .fla file before converting it to the .swf file that is uploaded in DFP.
  • The clickTAG variable is properly implemented in the action of the button. In the getURL() function of the action, make sure to specify the clickthrough URL as clickTAG and the target window as "_blank". For example:getURL(clickTAG,"_blank");.
  • If you enter the clickTAG variable name using incorrect casing (such as "clicktag" "or "clickTag"), DFP will automatically try to correct to the proper casing ("clickTAG") when we upload the Flash file.
  • Depending on the structure of a Flash creative, it may be necessary to prepend _root. or _level0. to clickTAG, resulting in _root.clickTAG or _level0.clickTAG. The code below illustrates proper use of the clickTAG parameter.
    on (release) {
    if (clickTAG.substr(0,5) == "http:") {
    getURL(clickTAG, "_blank");
    } }
  • The button associated with the ActionScript that contains the clickTAG is on the top-most layer through the timeline.
  • The button associated with the ActionScript that contains the clickTAG is extended throughout the entire frame and is applied to all existing frames.

You may wish to review more detailed documentation for clickTAG implementations at