Blog

clickTag not working: why your HTML5 banner won't click, and how to fix it

Why an HTML5 banner clickTag fails: Google Ads ignores it, wrong case, hardcoded URLs, covered click areas, multiple exits. Fixes and code for each platform.

Alex10 min read

Designer creating animated HTML5 banner ads on a tablet

When a banner's clickTag doesn't work, the click handler is rarely the problem. Usually the ad was written for a different platform than the one it was uploaded to. Google Ads, the most common destination, doesn't read a clickTag at all. Most other failures come down to a misspelled variable, a hardcoded landing URL, or a layer covering the click area.

This guide starts with a symptom table, then walks through each cause with a fix you can paste. At the end there's a per-platform table showing how each ad platform expects the click to be wired.

Disclosure: I build Foldwrap, an HTML5 banner tool whose exporter has to get this right for every platform it supports. Every rule below comes from the platform's own documentation, linked inline.

What a clickTag is

A clickTag is a JavaScript variable that holds the click-through URL. The ad server sets or replaces it at serve time, usually with a tracking redirect that counts the click and then forwards it to the landing page. The creative only has to open whatever URL the variable contains. That way the same ZIP can be trafficked to different landing pages without re-exporting.

IAB Tech Lab's HTML5 for Digital Advertising guidance asks for a variable named clickTag "with appropriate camel-case capitalization", opened with window.open(clickTag, '_blank'). The minimal version:

<head>
  <meta name="ad.size" content="width=300,height=250">
  <script>var clickTag = "https://www.example.com/landing";</script>
</head>
<body>
  <a id="click-area" href="#"
     onclick="window.open(window.clickTag, '_blank'); return false;">
    <!-- the whole ad goes inside -->
  </a>
</body>

Many platforms follow this pattern. Several don't, and that mismatch causes most clickTag failures.

Quick diagnosis

SymptomMost likely cause
Google Ads validator: ExitApi.exit() call not foundGoogle Ads doesn't read clickTag (cause 1)
Click does nothing anywhere, even locallyVariable undefined or misspelled, or the handler is never attached (causes 2, 5)
Works locally, but after upload goes to the fallback URLURL hardcoded, or not read from the query string (causes 3, 4)
Clicks land, but reports show zero clicksA hardcoded URL bypasses the platform's click tracker (cause 4)
Only part of the ad is clickableAnother layer sits on top of the click area (cause 5)
HTML5 ad contains multiple exitsMore exits than the platform allows (cause 6)
Landing page replaces the publisher's pageMissing _blank (cause 7)
Nothing happens in the platform previewSome previews never click through (cause 8)

Cause 1: the platform doesn't use clickTag

Several large platforms want a vendor API call or a macro instead of a clickTag variable. Uploading a generic clickTag creative to one of them makes the click fail, or gets the upload rejected outright.

For HTML5 ZIPs uploaded to Google Ads (Display), the click goes to the final URL you set in the Google Ads interface. The creative signals the click by calling ExitApi.exit() from Google's exit script:

<head>
  <meta name="ad.size" content="width=300,height=250">
  <script src="https://tpc.googlesyndication.com/pagead/gadgets/html5/api/exitapi.js"></script>
</head>
<body>
  <a id="click-area" onclick="ExitApi.exit()">
    <!-- the whole ad goes inside -->
  </a>
</body>

To confirm it, we built four 300×250 test bundles and ran them through Google's HTML5 validator for Google Ads, the checker Google's upload error help page points to:

Test bundle (Sept 21, 2026)Validator result
clickTag + window.openFail: Exit API Script, ExitApi.exit() call not found
No click code at allFail: same error
clickTag + clickTag2 (two exits)Fail: Exit API Script
exitapi.js + ExitApi.exit()Pass

The validator has no clickTag check. It doesn't treat a clickTag as an exit at all.

Google's own pages disagree

The same error help page still lists "Your HTML5 ad is modifying clickability, which is not supported". It says ExitApi.exit() in ads built outside Google Web Designer is not supported, and that removing the script makes "your entire ad clickable". The validator that page links to requires the opposite. We follow the validator, because it's the check you can actually run. Run your own bundle through it before uploading, and if the account rejects it anyway, the help page's version is the one to try.

Three other Google Ads rules affect the click. Google Ads allows only one exit ("Google Ads doesn't allow multiple exits"). The external scripts you may load are limited to an allowlist (see the Google Ads spec page). And HTML5 upload itself is gated by account history, a separate rejection reason that has nothing to do with your code.

Other platforms with their own click call

PlatformWhat the creative callsSource
Google Studio (rich media)Enabler.exit('Background Exit') after loading Studio's Enabler. Exit URLs are set in Studio, up to 100 exitsGoogle
Amazon DSPSDK.clickThrough(). "You can't include an external link directly in your HTML5 zip file"Amazon
Flashtalking (Innovid)myFT.applyClickTag(element, 1); URLs are managed at campaign levelFlashtalking
Simpli.fiThe {{clickMacro}} macro, replaced at serve time: window.open('{{clickMacro}}')Simpli.fi

Fix: find out the destination platform before export, and wire the click the way that platform documents. A creative that runs on several platforms needs a separate build for each.

Cause 2: wrong variable name or capitalization

JavaScript is case-sensitive: clickTag, clickTAG and clicktag are three different variables. If the ad server sets clickTAG and your code opens clickTag, the click opens undefined or nothing at all.

Platforms don't agree on the spelling:

  • clickTag: IAB, Campaign Manager 360, Google Ad Manager, DV360, Xandr, Equativ, Quantcast, AdRoll, StackAdapt.
  • clickTAG: The Trade Desk ("The Trade Desk Platform defaults to clickTAG", spec PDF), Adform, Choozle.
  • Either: Basis reads a query parameter "named clickTag or clickTAG" (Basis). Yahoo DSP calls the variable "not case sensitive" (Yahoo).

Fix: use the exact spelling from the platform's spec. If one file has to tolerate both spellings, read both, the way Yahoo's guidance allows:

window.clickTag = window.clickTag || window.clickTAG || "https://www.example.com/landing";

Adform is a special case. Its click URL is read through Adform's own helper (dhtml.getVar('clickTAG', 'https://example.com')), and if the banner has more than one exit, every one of them must be declared in a manifest.json (Adform).

Cause 3: the URL arrives in the query string, but the code never reads it

Some platforms don't overwrite a variable in your file. They pass the click URL as a parameter on the creative's own address, like index.html?clickTag=https%3A%2F%2Ftracker…. Xandr: "The ad URL returned to a publisher's page includes a clickTag parameter in the query string" (Microsoft). The Trade Desk, Basis and Choozle work the same way.

If your file only declares var clickTag = "https://…", it never looks at the query string. Every click goes to your hardcoded fallback, and the platform's tracker never sees it.

Fix: read the parameter and keep a fallback for local testing:

var clickTag = (function () {
  // the i flag matches both clickTag and clickTAG
  var m = /[?&]clickTag=([^&]*)/i.exec(window.location.search);
  return m ? decodeURIComponent(m[1]) : "https://www.example.com/landing";
})();

Cause 4: a hardcoded landing URL

The opposite mistake is opening the landing page directly with window.open("https://brand.com/offer") and never touching the variable. The click works, so nobody notices, but it goes around the ad server's click tracker. Reports show zero clicks, and changing the landing page means re-exporting the creative.

Platforms say this in different words. Yahoo: "Remove any code that sets clickTAG to another url" (Yahoo). CM360: "Make sure your creative uses the click tag variable as the click destination", and "You can change the landing page your click tag uses anytime, even after you export tags" (Google). Equativ is fine with an empty variable: "If not used, leave the variable value empty, as follows: var clickTag=""" (Equativ).

Fix: every click handler opens the variable, never a literal URL. A default value inside the clickTag declaration is fine. A literal URL inside window.open() is not.

One exception goes the other way: AdRoll expects the creative to carry the destination URL itself (AdRoll). Check this field on each platform's spec before leaving the value empty.

Cause 5: something covers the click area

The clickTag is fine, but the element with the click handler sits under something else. Common culprits are an animated layer, a full-size decorative image, a particle effect, or a border div added late. The browser delivers the click to the top element, which has no handler. You'll typically see the CTA work while the photo doesn't, or the ad stop being clickable after the last animation step.

Fix: either put a full-size click layer on top of everything, or let clicks pass through decorative layers:

#click-area { position: absolute; inset: 0; z-index: 1000; cursor: pointer; }
.decor, .overlay, .particles { pointer-events: none; }

To find the layer that's stealing clicks, open the ad in a browser and run document.elementFromPoint(150, 125) in the console with coordinates inside the dead area. Whatever it returns is the layer receiving the click.

Cause 6: more exits than the platform allows

Separate destinations for the logo, the product and the CTA are a common ask, but many platforms only support one click area per ad:

  • One exit only: Google Ads, DV360, Yahoo DSP, Quantcast ("The entire unit would be considered a single click area", Quantcast), The Trade Desk, Xandr, Basis.
  • Multiple exits: CM360 and Google Ad Manager (numbered click tags, as in IAB's clickTag1, clickTag2), Adform (declared in manifest.json), Google Studio (up to 100), Flashtalking.

Google Ads rejects a multi-exit upload with "HTML5 ad contains multiple exits".

Fix: for single-exit platforms, wrap the whole ad in one click area that opens one variable. Send per-element destinations only to platforms that report them.

Cause 7: the landing page opens in the same tab

window.location = clickTag, or a plain link without target="_blank", navigates the ad's own iframe or replaces the publisher's page. Most platforms forbid that. DV360: "the landing page must open in a new tab or new window" (Google). The Trade Desk, Basis and Choozle say the same.

Fix: always window.open(clickTag, '_blank').

Cause 8: you're testing where clicks never work

Some previews never click through. Google Ads says so directly: "Creatives will not click-through in the ad creation preview or the 'View full size ad' preview pop-up" (Google). Opening index.html from your disk with an empty clickTag does nothing either, which is correct behavior and not a bug.

How to test a click before upload

  1. Open the ad locally with a test URL in the query string: index.html?clickTag=https%3A%2F%2Fexample.com. The click should open example.com in a new tab.
  2. Check the variable in the console: typeof clickTag, clickTag should print a string with your URL, not undefined.
  3. Click every corner of the ad and use document.elementFromPoint on any dead area (cause 5).
  4. Run the platform's validator if it has one, such as Google's validator for Google Ads.
  5. Run our free HTML5 banner validator. Drop the ZIP to check whether each platform finds the click integration it expects, along with file size, file count and external hosts. It checks against published specs. Passing it doesn't guarantee the platform will accept the ad.

How each platform wires the click

PlatformClick mechanismNameExitsSpec
General / IABclickTag variableclickTagMultiple (clickTag1, clickTag2…)Spec
Google AdsExitApi.exit() + exitapi.jsnoneOneSpec
Campaign Manager 360clickTag variableclickTagMultiple, numberedSpec
Google Ad ManagerclickTag variable in <head>clickTagMultiple, numberedSpec
Display & Video 360clickTag variableclickTagOneSpec
Google StudioEnabler.exit()Named exitsUp to 100Spec
The Trade DeskQuery parameterclickTAGOneSpec
XandrQuery parameterclickTagOneSpec
BasisQuery parameterclickTag / clickTAGOneSpec
ChoozleQuery parameterclickTAGOneSpec
Adformdhtml.getVar() + manifestclickTAGMultiple, in manifestSpec
Yahoo DSPclickTag variableAny caseOneSpec
Amazon DSPSDK.clickThrough()noneOneSpec
FlashtalkingmyFT.applyClickTag()NumberedUp to 20Spec
Simpli.fi{{clickMacro}} macrononeOneSpec
EquativclickTag variable, may be emptyclickTagOneSpec
QuantcastclickTag variableclickTagOneSpec
AdRollclickTag variable, URL in fileclickTagOneSpec
StackAdaptclickTag variableclickTagOneSpec

Each spec page quotes the vendor document behind every value and gives the date it was checked. If a platform you deliver to is missing, tell us and we'll research it.

Skip the hand-wiring

The table above is why one hand-coded clickTag rarely survives a multi-platform campaign. In Foldwrap you pick export targets, and the exporter writes the click code each platform documents: ExitApi for Google Ads, clickTAG for The Trade Desk, query-string reading for Xandr, the Enabler for Studio, and one click area where only one exit is allowed. Preflight flags a missing required URL or flattened element destinations before you export. Each target gets its own HTML5 ZIP, checked against that platform's published specs.

Export HTML5 banners wired for every platform you deliver to

Common questions

Does Google Ads use clickTag?

No. For uploaded HTML5 ads, Google Ads sends the click to the final URL set in the Google Ads interface. Google's HTML5 validator for Google Ads requires the exitapi.js script and an ExitApi.exit() call, and in our September 2026 test it failed bundles that used only a clickTag.

Is it clickTag or clickTAG?

It depends on the platform. IAB, Campaign Manager 360, Google Ad Manager, DV360 and Xandr use clickTag. The Trade Desk, Adform and Choozle use clickTAG. JavaScript is case-sensitive, so use the exact spelling from the platform's spec.

Why does my banner click work locally but not after upload?

Either the URL is hardcoded and the platform's value is ignored, or the platform passes the URL as a query parameter (Xandr, The Trade Desk, Basis, Choozle) and the code never reads it. Read the variable or query parameter instead of a literal URL.

Should the clickTag variable contain my landing page URL?

On most platforms you can leave it empty or use the landing page as a fallback, because the ad server replaces it and you set the real URL in the platform. AdRoll is an exception that expects the URL in the file. Never open a literal URL in the click handler itself, or the platform cannot count the click.

Can an HTML5 banner have more than one click-through URL?

Only on platforms that support multiple exits, such as Campaign Manager 360, Google Ad Manager, Adform, Google Studio and Flashtalking. Google Ads, DV360, The Trade Desk, Xandr, Yahoo DSP and Quantcast allow one click area per ad.

How do I test a clickTag?

Open index.html with a test URL in the query string, for example index.html?clickTag=https%3A%2F%2Fexample.com, and click every part of the ad. Check the variable in the browser console, then run the platform's own validator and the Foldwrap HTML5 banner validator before upload.

Keep reading

A banner producer with a magnifying glass inspects a modern balance scale: a crate and a thick iceberg photo slab weigh one side down, while a slim banner with the same photo rises on the other

CreateJS Banner Weight: Adobe Animate Canvas vs HTML/CSS

Marketer reviewing creative animated display ads examples

Animated Display Ads Examples: 12 HTML5 Banner Concepts

Designer comparing animation and design tools with a magnifying glass

11 HTML5 Banner Ad Tools Compared (2026)