ze\file::trackDownload()
ze\file::trackDownload($url)
This function is used to generate a string of JavaScript code which can be placed in the onclick events on links to file downloads. This download is then recorded if the site is registered on Google Analytics.
$url
The URL to appear in Google Analytics for this download. Should be in the format "public/file.png" or "private/file.png".
A string of JavaScript code.