Correct way to call setDownloadClasses with Async JS tracking code?

For the Async JS Tracking code, is this the correct way to add two classes for DL tracking?


    _paq.push(['setDownloadClasses',['apstr-application-download-button', 'apstr-application-source-button']]);

Also, will this still only work for links () with the class set, or any element with that class set that is clicked on?

Thanks,
Aaron

Yes, that’s one way of using setDownloadClasses().

The default is to look at the extension in the URL to determine whether a link is a download or not. Use class names when the extension (e.g., .php) would be non-obvious, e.g., http://mysite/download.php?file=123