When trackDownloadLinks
is enabled and a visitor clicks on a link, AppMeasurement checks the URL of the link for filetype extensions. If the link URL contains a filetype found in linkDownloadFileTypes
, a download link image request is automatically sent.
Use linkDownloadFileTypes
to customize what file extensions you want to count as download links.
Only actual clicks are tracked automatically. The following types of links are not automatically tracked:
javascript:openLink()
For these download types, you can manually call the tl()
method.
If a clicked link matches both exit link and download link criteria, the download link type takes priority.
Download Extensions is a list of file extensions with a field to add more under the Link Tracking accordion when configuring the Adobe Analytics extension.
Add file extensions to the list by entering text in the field and clicking Add. Remove file extensions from the list by clicking their respective ‘X’ icon.
The s.linkDownloadFileTypes
variable is a string of comma-separated file extensions. Do not use spaces.
If this variable is not defined, automatic download link tracking does not work (even if trackDownloadLinks
is true
).
s.linkDownloadFileTypes = "doc,docx,eps,jpg,png,svg,xls,ppt,pptx,pdf,xlsx,tab,csv,zip,txt,vsd,vxd,xml,js,css,rar,exe,wma,mov,avi,wmv,mp3,wav,m4v";