Click, download and goal tracking

Last updated · View as Markdown

Analiza records clicks on outbound links and file downloads automatically, with no configuration. To count a named goal, such as a sign-up button, add data-analiza-click="goal-name" to the element. To exclude part of a page, add data-analiza-click="off".

What is tracked automatically?

Click onWhat is recorded
A link to another websiteThe target as https://host/path. The query string and #hash are never sent.
A link to a file download on any host (.pdf, .zip, .csv, .docx, .xlsx, .mp4, .dmg, .exe and similar)The file URL as https://host/path, without query or hash.
A mailto: or tel: linkOnly the scheme (mailto: or tel:), never the address or number.
A link to another page of your own siteNothing, unless the link has a data-analiza-click name.

Left clicks and middle clicks (open in new tab) are counted. Right clicks are not.

How do I track a named goal?

Add a data-analiza-click attribute with a name to any element: a link, a button, or a container. A click anywhere inside it is recorded under that name.

<a href="/signup" data-analiza-click="signup-hero">Start for free</a>

<button data-analiza-click="newsletter-subscribe">Subscribe</button>

Use short, stable names such as pricing-standard or contact-form; they appear as-is in your dashboard.

How do I stop clicks from being tracked?

Add data-analiza-click="off" to an element. No click inside that element is recorded, including outbound links and downloads.

<div data-analiza-click="off">
  <a href="https://partner.example.com/private">Not tracked</a>
</div>

No. If a link looks like it carries a credential (a username or password in the URL, a parameter named like token, key, session, code or signature, or a long token-like value or path segment), its target is not sent at all. The same check runs again on the server.