Links, downloads and forms
The script counts clicks on links to other sites, to files, to phone numbers and to email addresses, and the forms sent, with nothing to set up.
A link to a shop, a partner or a download, a form or a phone number can be the point of a page. The Actions panes show which links are followed, which files are taken, which forms are sent and which numbers and addresses are clicked, narrowed by the dashboard’s filters, such as to visits from Google. On a page where you’d rather not count them, one attribute turns them off.

Outbound clicks
A click on a link to any host other than the page’s own, counted under where the link goes: its host,
without www., and its path. The query string and anything after # are left off. A
subdomain is another host, so a link from example.com to shop.example.com is outbound.
The host with www. and without it are one site, so a link between www.example.com and
example.com isn’t.
Downloads
A click on a link to a file on the page’s own host, with or without www., counted under the
file’s path. A link is to a file when its path ends in one of 375 extensions, in any case, such
as .pdf, .zip, .docx, .xlsx, .csv, .mp3, .mp4, .dmg and .exe. Images, scripts and
stylesheets count too, so a link to /photos/cat.jpg is a download. Page types such as
.html, .php and .aspx never are.
A link to a file on another host is an outbound click, not a download. Download extensions lists all 375, and the page types that never count.
Forms
A form sent from the page, counted under the page it was sent from. Where it was sent to another site, such as a mailing list’s, that site’s host is shown beside the page. Nothing anyone typed into the form is sent, only where it went.
A search form never counts: one with role="search", one inside a <search>
element, or one with a search box or a field named q, s, query or
search. Count searches with site search instead. A form with
data-tally sends its own event as well, so it can be a goal.
Calls and emails
A click on a tel: link, counted under its number, and on a mailto: link, under its
address in lower case. Anything after the number or the first address, such as an extension or a subject, is
left off.
What counts as a click
- A click with the main button, or with a key held to open the link elsewhere.
- A middle click, which opens the link in a new tab.
- Enter pressed on a link, which browsers treat as a click.
A right click doesn’t count, since it only opens a menu, and nor does a link opened from that menu. Only
http:, https:, tel: and mailto: links count. Links added by a script count like any other, and so does a click your own code stops. Links inside a
web component count as well, unless its shadow root is closed.
A file fetched without a link, such as one a script downloads, or a form a script sends without submitting it, isn’t counted. Send a custom event for those.
On the dashboard
They’re under Actions, in two panes: Outbound clicks and File downloads, and Forms, Calls and Emails. Hover over a row for an arrow that opens the link, the file or the page in a new tab.
A click or a form counts with the visit it was made in, on the page it was made on. So filtered by Google, the panes show the clicks in visits from Google, and filtered by a page, the clicks made on it. They aren’t available filtered by an entry or exit page, or by a goal. See Filters.
The API reads them as the outbound-clicks,
file-downloads, forms, calls and emails panes, and so does
an app connected over MCP.
Turning them off
If a page’s links lead somewhere you’d rather not follow, such as an app’s links to its customers’ own sites,
stop counting them, calls and emails too, with data-links="off"
on its tag. Stop counting its forms with data-forms="off".
A link or a form with data-tally still sends its event.