Clear search
Close search
Google apps
Main menu

Flash creative doesn't track clicks

DFP support for Flash is deprecated. After July 3, 2017, Flash creatives will no longer serve. Learn more.

If you've specified a destination URL but your Flash file still does not track clicks, review how the clickTAG variable is implemented in your .swf file by opening it directly in a browser. (You can also use tools, such as Action Script Viewer or URL Action Editor, to debug problems with your .swf file.) Click tracking is currently not supported for multiple click destinations within a Flash file.

In Flash creatives (but not other creative types that use Flash files), you can override the clickTAG entirely. In the creative settings, enable the Override the clickTAG checkbox. The click-through override works by adding a transparent layer of HTML over the Flash file. The layer contains your click-through URL. When your creative is delivered, users won't be able to interact with the Flash file. Any click will take the user to the creative's click-through URL. Similarly, any third-party click tracking that's built into the Flash file won't work, because users won't actually be clicking on the Flash file. DFP will 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:

  • The advertiser has inserted the clickTAG in the .fla file before converting it to the .swf file that is uploaded to 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");.

    DFP only recognizes the standard casing of clickTAG for the variable name, not ClickTag or clicktag or any other variant.
  • Depending on the structure of a Flash asset, 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:" || clickTAG.substr(0,6) == "https:") {
    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've specified the click-through URL in the DFP creative.

You can review more detailed documentation for clickTAG implementations at


Flash functionality

The advertiser, agency, or rich content vendor that creates the Flash asset should ensure the asset is fully functional. However, you may still wish to review the asset and ensure that the ActionScript with clickTAG is associated with the button that the user clicks, and not with any other button.


About ActionScript 3

ActionScript 3 clickTAGs are not guaranteed to work in every situation.

Here's an example of an ActionScript 3 clickTAG:

Link_1.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent):
void { var sURL: String;
if ((sURL = root.loaderInfo.parameters.clickTAG)) {
URLRequest(sURL), "_blank"); }

For more examples, see

Was this article helpful?
How can we improve it?