What are goals?
Goals are custom events that you want to track, such as:- Button clicks
- Form submissions
- Video plays
- File downloads
- Newsletter signups
- Product purchases
- Any custom user action
Create a goal
- Go to your website settings in the dashboard
- Click “Goals” in the sidebar
- Click “Create Goal”
- Enter:
- Name - A descriptive name (e.g., “Newsletter Signup”)
- Event - The event identifier (e.g., “newsletter_signup”)
- Description - Optional description
Track goals with JavaScript
Method 1: Using the tracking function
Method 2: HTML onclick
Method 3: React/Vue event handlers
Track goals with value
Track goals with a numeric value (e.g., purchase amount):Track goals via API
You can also track goals server-side using our API:View goal data
In your dashboard, you can view:- Goal completions - Number of times each goal was completed
- Conversion rate - Percentage of visitors who completed the goal
- Goal value - Total value of goal completions
- Goal by source - Which traffic sources drive the most goal completions
- Goal over time - Goal completions over time
Common goal examples
Form submission
Button click
Video play
File download
Best practices
- Use descriptive event names - Use clear, consistent naming (e.g.,
newsletter_signup, notns) - Track meaningful actions - Focus on actions that matter to your business
- Include values when relevant - Add numeric values for revenue-related goals
- Test your goals - Verify goals are tracking correctly before relying on the data
Next steps
Track conversion funnels
Learn how to track multi-step conversion funnels