Download Prompts, Buttons & Tracking
Paddle.js has built-in download tracking functionality. When enabled Paddle.js has will do the following:
- Track Downloads (these stats to be made available shortly within the Paddle Dashboard)
- Attribute Downloads to Affiliates (stats now available within your affiliate download)
- (Optional) Ability to Prompt for an Email Signup/Audience Subscripton to initiate a download.
Creating a Download button is simple. Any HTML element can be a download button (though we recommend a link, or button tag). The button must have the CSS class
paddle_download applied, and a download URL specified with
data-download-url. In order for the Download Prompt to be GDPR compliant, your company name must be included in the opt-in message. To do this, you must add a vendorName attribute to the download button. Failure to do this will result in no marketing consent being gathered for users submitting the form.
By default, Paddle.js will prompt the user to enter their email address to proceed to the download, for example:
To disable the download prompt (and simply forward users directly to the download URL, whilst tracking the activity) specify
data-download-prompt="false" on the button.
The title, subtitle and call-to-action text are all customizable by adding attributes to the button:
data-download-heading - Updates the title, default: “Enter your email to download!”
data-download-subheading - Updates the subtitle, default: “Enter your email address to begin the download.”
data-download-cta - Updates the button/CTA text, default: “Download!”