TapCub is live — analytics, insights and live chat, free on one platform
Help center

How do I track file downloads?

TapCub records clicks on links to common file types automatically as a file download event. Which links count, where to see them, what is missed and how to track the rest.

Product analytics1 min readLast updated Nov 4, 2026TapCub teamPart of Autocapture and the AI event inbox

Still have a question?

Could not find it? A person reads every message, usually within a few hours on business days.

Chat with us

Short answer

TapCub tracks downloads automatically: a click on a link ending in a common document, archive or installer extension is recorded as a file download event. Dynamic download URLs are not matched; send a custom event for those.

It is on by default

The TapCub script records a click on a link whose path ends in a common document, archive or installer extension, such as .pdf, .zip or .dmg, as a file download (__download). No code is needed.

Where to see it

Open Web analyticsEvents. File downloads appear with a readable label next to your own events. Open the row to see its properties, such as the file link. To count one file as a conversion, add an event goal with a property condition in Web analyticsGoals.

What is not counted

Downloads are matched by the file extension in the link only.

  • Dynamic download links such as /download?id=42 or a link that redirects to a file are not counted.
  • Files opened directly from another site or an email do not pass through your page, so there is no click to record.

For dynamic links, send your own event when the download starts:

tapcub.track('file_download', { file: 'pricing-guide' });

Event naming rules are in the developer docs.

Turn it off

Add data-downloads="false" to the script tag. If downloads are turned off in project settings, the collector drops them even if the script sends them.

Confirm it works

Do the action yourself on the live site, then open Web analyticsRealtime: the event appears within a few seconds. Totals and properties are in Web analyticsEvents.

See also: track outbound links, track custom events and event tracking.

Did this answer your question?

We use your answers to fix and expand this page.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics