Goals & Conversions
Track critical actions on your website, such as form submissions or button clicks.
What Are Goals?
Goals allow you to measure specific interactions that go beyond standard page views. Within DashFast, you can track purchases, newsletter sign-ups, or file downloads.
1. HTML Attribute (No Coding Required)
The easiest approach. Simply add a custom attribute to any HTML element (button, link, image). DashFast automatically registers a conversion upon click.
<button data-df-goal="goal_abc123">Buy Now</button>
2. JavaScript API (For Developers)
Use this method if you wish to trigger a goal programmatically – for instance, after a successful AJAX form submission or inside your React/Next.js application logic.
window.dashfast.event('goal_abc123')Best suited for direct clicks to a contact page, PDF downloads, or clicking external links (e.g., Affiliate links).
Ideal for order confirmations, where you want to fire the goal only after the server confirms that the data has been successfully saved.
Important Notice
For goal tracking to work properly, your primary tracking script must be installed on the same page. Goals will begin to appear in your dashboard in real-time immediately after the first action is recorded.