Docs
File downloads
Clicks on a same-origin a href whose path ends in pdf, csv, xlsx, zip, dmg, or mp4 send event type download. Cross-origin file links stay outbound. Pageviews are unchanged.
Markdown · same page for crawlers. index, follow.
What fires
The snippet already listens for clicks. If the resolved path ends in one of those extensions and the origin is this page, it sends type: download with the path only. It does not call preventDefault.
// sent automatically — you do not have to call this
// cashline('download') is reserved so it is not treated as a goal nameOn the board
Sources → File downloads. Columns: path, clicks, visitors. Empty until a download event is stored.
What this is not
Not an exit click. Not a pageview. A PDF on another host still sends outbound. zarstat() is still an alias for cashline().