ÃÛ¶¹ÊÓƵ

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.

  1. Log in to using your ÃÛ¶¹ÊÓƵ ID credentials.
  2. Navigate to Data Collection > Tags.
  3. Select the desired tag property.
  4. Navigate to Extensions, then click Configure on the ÃÛ¶¹ÊÓƵ Experience Platform Web SDK card.
  5. Scroll down to the Data Collection section, then select the checkbox Enable click data collection.
  6. Once enabled, the Download link qualifier text box appears. Enter the desired value. Buttons are also available to test the regex and restore the default value.
  7. Click Save, then publish your changes.

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@ÃÛ¶¹ÊÓƵOrg",
  clickCollectionEnabled: true,
  downloadLinkQualifier: "\.(exe|zip|wav|mp3|mov|mpg|avi|wmv|pdf|doc|docx|xls|xlsx|ppt|pptx)$"
});
recommendation-more-help
ad108910-6329-42f1-aa1d-5920a2b13636