1. First: which ad server is it for?
“ClickTag” is a convention, not a standard, and the most common “broken clickTag” is a click written for one ad server and trafficked on another. Before debugging anything, check which convention the destination expects:
| Ad server | What the click needs |
|---|---|
| Campaign Manager 360 | A clickTag variable, opened on click. Detected at upload; more than one is allowed, each a separate exit. |
| Display & Video 360 | A clickTag variable, opened with window.open(window.clickTag). At least one exit or click tag is required. |
| Google Ads (uploaded HTML5) | No clickTag. Google makes the whole ad clickable; no custom exits, no multiple exits — see section 4. |
| Adform | clickTAG (capital TAG), read through Adform's DHTML library and declared in manifest.json. |
| Flashtalking | No clickTag variable: exits are declared in manifest.js and wired with myFT.applyClickTag(). |
| Studio (rich media) | Exits through Enabler.exit(), not a click tag. |
2. Test the click in 30 seconds
For a clickTag ad server, the working pattern is a variable declared in the HTML and a click handler that opens it:
<head> <script>var clickTag = "https://www.example.com";</script> <!-- the ad server replaces it --> </head> <body> <div id="ad"> … </div> <script> document.getElementById('ad').addEventListener('click', function () { window.open(window.clickTag); }); </script> </body>
Open index.html in a browser and click anywhere on the ad. With a default URL in the variable, the landing page should open in a new tab. If it doesn't, open the browser's developer tools (Console) and click again: an error there is usually the whole answer. You can also type clickTag in the console to see what the variable holds.
3. Eight reasons a click breaks
- A layer sits on top of the clickable element. The click is wired to the background image, but an animated text block, a full-size
<canvas>or a transparent overlay above it catches the click instead. Put the handler on the outermost container (or a full-size transparent layer placed on top), or give decorative layerspointer-events: none. - The click opens a fixed URL.
<a href="https://…">orwindow.open("https://…")works for you and for the visitor — and the ad server never sees the click. This is the “it works but reports zero clicks” case. Campaign Manager 360 warns about hard-coded URLs after upload. Open the variable instead. - The variable is declared and never opened. A template was copied, the
var clickTagline came with it, and the handler did not. Nothing happens on click. - The name doesn't match. JavaScript names are case-sensitive:
var clickTagandwindow.open(clicktag)are different, and the second throws an error. Adform expectsclickTAG; Campaign Manager 360 and Display & Video 360 expectclickTag. - A script error stops the handler from being attached. If an earlier line in the same script throws — a library that didn't load, a typo, a name that doesn't exist — the line that adds the click listener never runs. The banner still animates; the click is dead. The console shows the error.
- The click navigates the ad's own frame. On the ad server the creative runs inside an iframe.
location.href = clickTagor a link with no new window loads the landing page inside the banner slot, or the browser blocks it. Usewindow.open(window.clickTag), which opens a new window as Google's own samples do. - The variable is hidden from the ad server. Campaign Manager 360 detects click tags when the ZIP is uploaded, and asks that the click tag be easy to read — no minification or obfuscation. A build step that renames or compresses the variable can make the ad server think there is none.
- Too many, or the wrong kind of, exits. Two click tags are fine on Campaign Manager 360 and rejected on Google Ads. A Studio
Enabler.exit()is right for rich media and wrong for a standard clickTag upload. Match the exits to the ad server.
4. Google Ads is different
Many “clickTag is broken” reports are really Google Ads. For HTML5 ads uploaded to Google Ads, Google's help page on upload errors says nothing about a clickTag variable. Instead:
- Google handles the click. When the custom exit code is removed, the whole ad becomes clickable and goes to the final URL set in the ad.
- Custom click code is rejected. “Your HTML5 ad is modifying clickability, which is not supported” means the ad uses a Google Web Designer Tap Area or
ExitApi.exit(). Remove the Tap Area, or the ExitApi script and the code that calls it. - One exit only. “HTML5 ad contains multiple exits” means more than one exit was found. Google Ads doesn't allow multiple exits.
- The preview doesn't click. Creatives don't click through in Google Ads' own ad-creation preview. That on its own is not a fault.
So a banner built for Campaign Manager 360, with its clickTag and handler, is not automatically a Google Ads banner. Build to the ad server the ad is booked on.
5. How our validator tests the click
Our HTML5 ad validator checks the click the way the ad server and a visitor would. From the package, it reports clickTag present and clickTag correctly implemented — the second fails with “clickTag is defined but not used on a clickable element” when the variable is declared and never opened. It looks only at code the browser actually runs, so a commented-out handler or the word “clickTag” in a headline does not count as a pass.
Then it clicks. In a hidden copy of the creative it hovers and clicks up to eight clickable elements, largest first, and records what opened, without ever leaving the page. If nothing opens, the row fails: “nothing opened. The click-through never fires.” If the banner sets a clickTag value and the click opens some other URL, it warns that “The ad server's click tracking would be bypassed.” A script error on hover or click is a fail too. A separate live row, Clickable surface, checks that at least one clickable element is 32×24 or larger.
Adform, Flashtalking and Studio conventions are judged under their own profiles, so a correct Flashtalking build is not marked broken for lacking a clickTag. For a Campaign Manager 360 or Display & Video 360 banner, pick that profile. The Google Ads profile works the way Google Ads does: it expects no click code, fails a Google Web Designer Tap Area or ExitApi.exit(), fails more than one exit, and passes the live click test when nothing opens — because Google adds the click itself.
6. The click checklist
- Name the ad server and use its convention:
clickTag,clickTAG,myFT.applyClickTag(),Enabler.exit()— or nothing at all for Google Ads. - Declare the variable in the HTML, in plain readable code.
- Open the variable, not a URL, with
window.open(window.clickTag). - Put the click on top: the outermost container or a full-size layer, with decorative layers set to
pointer-events: none. - Open the console and click. No errors; a new tab opens.
- Count the exits against what the ad server allows.
- Run it through the validator on the ad server's profile before it leaves your desk.
Drop the ZIP in. The click is tested for you.
Pick the ad server's profile and get the package checks, a live preview with the click tested, and a score. Free with no signup — 2 checks a day without an account, 5 with a free one. Your ZIP never leaves your browser.
Frequently asked questions
Why does my banner click work in my browser but not on the ad server?
location.href = clickTag loads the landing page inside a 300×250 slot, or is blocked. Open the variable with window.open(window.clickTag).Is clickTag case-sensitive?
var clickTag and window.open(clicktag) are two different things and the second one throws an error when clicked. Use the exact name your ad server expects: clickTag for Campaign Manager 360 and Display & Video 360, clickTAG for Adform.Does Google Ads need a clickTag?
ExitApi.exit() — and that it does not allow multiple exits. Creatives also do not click through in Google Ads' own ad-creation preview, which is normal.Can a banner have more than one clickTag?
How can I check the click before I upload?
Clicks that count, on every size.
Check an HTML5 banner's click for free in your browser — or hand the build to the team that produces trafficking-ready banners for agencies every day.