Docs / Tracking / Goals & Conversions

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:

Optional Fields:

Conversion Metrics

For each goal, Trackveil automatically calculates:

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:

Result: Trackveil will now show:

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

Viewing Goal Data

Access your goals dashboard at /app/goals to see: