Goals & Conversions
Define conversion goals and measure what drives revenue for your business.
What Are Goals?
Goals allow you to track important conversions on your website. A goal is achieved when a visitor completes a specific action, like making a purchase or signing up for a newsletter.
Types of Goals
1. Event-Based Goals
Track when a specific custom event occurs. Perfect for tracking purchases, signups, or any custom action.
Example: Track "Purchase" event as a conversion goal
2. Page View Goals
Track when visitors view a specific page. Perfect for thank-you pages, confirmation pages, or any destination page.
Example: Track visits to /thank-you page as a conversion
Creating Goals
After defining your goals, you can build Funnels to visualize multi-step journeys (e.g., Pricing → Checkout → Purchase). See the Funnels guide.
Go to your dashboard at /app/goals and click "Create Goal".
Required Fields:
- Goal Name: Descriptive name (e.g., "Purchase Completed")
- Goal Type: Event or Page View
- Target Event/Page: Which event name or page URL to track
Optional Fields:
- Goal Value: Monetary value per conversion (e.g., €29.99)
- Currency: EUR, USD, or GBP
- Description: Notes about the goal
Conversion Metrics
For each goal, Trackveil automatically calculates:
- Conversions: Total number of times the goal was achieved
- Unique Conversions: Number of unique visitors who converted
- Conversion Rate: Percentage of visitors who converted
- Total Value: Sum of all conversion values (if goal has value assigned)
Example: E-commerce Purchase Goal
Step 1: Track purchase events on your site:
// In your checkout success page
Trackveil.track('Purchase', {
value: 49.99,
currency: 'EUR',
order_id: '12345'
});
Step 2: Create a goal in your dashboard:
- Goal Name: "Purchase Completed"
- Goal Type: Event
- Target Event: "Purchase"
- Goal Value: 49.99 (average order value)
- Currency: EUR
Result: Trackveil will now show:
- How many purchases occurred
- How many unique customers purchased
- Conversion rate (e.g., 4.2% of visitors purchased)
- Total revenue from all purchases
Common Goal Examples
E-commerce
- • Purchase completed (event: "Purchase")
- • Cart checkout started (event: "Checkout Started")
- • Product added to cart (event: "Add to Cart")
SaaS
- • Trial started (page: /trial/welcome)
- • Account created (event: "Signup")
- • Subscription started (event: "Subscribe")
Lead Generation
- • Form submitted (event: "Contact Form")
- • Demo requested (page: /thank-you)
- • Newsletter signup (event: "Newsletter")
Content Sites
- • Article shared (event: "Share")
- • Download started (event: "Download")
- • Newsletter signup (event: "Subscribe")
Best Practices
- Set realistic goals: Track actions that truly matter to your business
- Assign values: Add monetary value to track ROI
- Monitor regularly: Check conversion rates weekly
- A/B test: Use goals to measure experiment success
Viewing Goal Data
Access your goals dashboard at /app/goals to see:
- All active goals with conversion statistics
- Conversion rate trends over time
- Total revenue from conversions (if values assigned)
- Create, edit, or delete goals