Adobe offers the ability to track download links without manually setting the tl()
method for each download link. Enable this variable if you would like to use automatic link tracking for download links.
When enabled, AppMeasurement compares any clicked link URL to values in linkDownloadFileTypes
. If there is a match, a download link tracking call automatically fires.
Use the Enable click data collection checkbox when configuring the Web SDK. This checkbox handles both exit and download links.
Configure the SDK using clickCollectionEnabled
. The field is a boolean that determines if data associated with link clicks are automatically collected. Its default value is true
. Set this value to false
if you want to disable automatic link tracking. This setting handles automatic link tracking for both download and exit links.
alloy("configure", {
"clickCollectionEnabled": true
});
Track download links is a checkbox under the Link Tracking accordion when configuring the Adobe Analytics extension.
Click the checkbox to enable automatic download link tracking.
The s.trackDownloadLinks
is a boolean that enables or disables automatic download link tracking. If you do not want to track download links, or would prefer to manually call the tl()
method to track downloads, set this variable to false
.
s.trackDownloadLinks = true;