downloadLinkQualifier
If you enable automatic link tracking using clickCollectionEnabled
, the downloadLinkQualifier
property helps determine the criteria for a URL to be considered a download link.
This property is a regex string. If the clicked URL matches this regex, xdm.web.webInteraction.type
is set to "download"
. Links are also immediately classified as a download link if they include a download
HTML attribute. If clickCollectionEnabled
is not enabled, this property does nothing.
Enable the Enable click data collection checkbox, then enter the desired text under Download link qualifier when configuring the tag extension.
Set the downloadLinkQualifier
string when running the configure
command. If you omit this property, it defaults to the following value:
\.(exe|zip|wav|mp3|mov|mpg|avi|wmv|pdf|doc|docx|xls|xlsx|ppt|pptx)$
If you want to use different criteria to qualify download links, set this property to the desired regex value.
alloy("configure", {
datastreamId: "ebebf826-a01f-4458-8cec-ef61de241c93",
orgId: "ADB3LETTERSANDNUMBERS@AdobeOrg",
clickCollectionEnabled: true,
downloadLinkQualifier: "\.(exe|zip|wav|mp3|mov|mpg|avi|wmv|pdf|doc|docx|xls|xlsx|ppt|pptx)$"
});