Pro Plan10 minutesbeginner

Creating Your First Goal

Set up conversion goals in Zenovay to track important user actions - signups, purchases, downloads, and more.

goalsconversionstrackingsetup
Last updated: January 15, 2025
Pro Plan

Goals let you track important conversions on your website. Learn how to create your first goal and start measuring what matters.

What Are Goals?

Goals track specific user actions:

Use CaseExample Goal
Lead generationForm submission
E-commercePurchase completion
SaaSAccount signup
ContentArticle read
EngagementVideo watched

Why Track Goals?

Goals help you:

  • Measure conversion rates
  • Identify traffic sources that convert
  • Optimize user journeys
  • Calculate ROI
  • Attribute revenue

Goal Types Overview

TypeTracksExample
URL MatchPage visitsThank you page
Element ClickButton/link clicksCTA button
Custom EventJavaScript eventsForm submit

Creating Your First Goal

Step-by-Step Guide

1

Access Goal Settings

Go to Goals and click New Goal

2

Choose Goal Type

Select the type that matches your conversion

3

Configure Goal

Enter the specific trigger (URL, element, event)

4

Name Your Goal

Give it a descriptive name

5

Set Value (Optional)

Assign a monetary value if applicable

6

Save Goal

Click "Create Goal" to activate

Quick Start: URL Goal

The simplest goal type - track visits to a specific page.

Example: Thank You Page

  1. Go to Goals and click New Goal
  2. Select "URL Match"
  3. Enter URL: /thank-you or /order-complete
  4. Name: "Purchase Complete"
  5. Value: $50 (average order value)
  6. Save

URL Matching Options

Match TypePatternMatches
Exact/thank-youOnly that exact path
ContainsthankAny URL containing "thank"
Starts with/blog/All blog posts
Ends with/successAny URL ending in "success"
Regex/order-\d+/Order pages with numbers

Quick Start: Click Goal

Track when users click specific elements.

Example: CTA Button

  1. Go to Goals and click New Goal
  2. Select "Element Click"
  3. Enter CSS selector: #signup-button or .cta-main
  4. Name: "CTA Clicked"
  5. Save

Finding CSS Selectors

To get the selector:

  1. Right-click the element
  2. Choose "Inspect"
  3. Find id or class
  4. Use #id or .class

Quick Start: Custom Event Goal

Track custom JavaScript events.

Example: Form Submission

  1. Add tracking code to your form:
document.querySelector('form').addEventListener('submit', function() {
  zenovay('goal', 'signup_form');
});
  1. Create goal in Zenovay:
    • Select "Custom Event"
    • Event name: signup_form
    • Name: "Signup Form Submitted"
    • Save

Goal Configuration Options

Basic Settings

SettingDescription
NameDisplay name in reports
TypeURL Match, Element Click, or Custom Event
TriggerWhat activates the goal
ActiveEnable/disable tracking

Value Settings

Pro Plan

Assign monetary value:

OptionUse Case
Fixed valueSame value every time
Dynamic valueValue from JavaScript
No valueJust count conversions

Dynamic Value Example

Pass value from your page:

// On purchase complete page
zenovay('goal', 'purchase', {
  value: orderTotal
});

Advanced Settings

SettingDescription
CategoryGroup related goals
Attribution windowTime to credit source
Once per sessionCount max once per visit
Once per userCount max once ever

Testing Your Goal

Before Going Live

  1. Test trigger manually

    • Visit the URL / click the element
    • Check goal fires in real-time
  2. Verify in dashboard

    • Go to Analytics → Goals
    • Should see test conversion
  3. Check attribution

    • Verify traffic source credited

Debug Mode

Enable debug to test:

zenovay('debug');
// Now perform action
// Check console for goal events

Viewing Goal Data

Goal Reports

After setup, find data in:

  • Analytics → Goals (overview)
  • Analytics → Traffic Sources (by source)
  • Analytics → Pages (by landing page)

Key Metrics

MetricDescription
ConversionsTotal goal completions
Conversion Rate% of visitors converting
ValueTotal goal value
First ConversionTime to first goal

Best Practices

Naming Conventions

Use clear, descriptive names:

BadGood
Goal 1Newsletter Signup
Button ClickCTA - Free Trial Click
Page ViewPurchase Complete

Goal Categories

Group related goals:

CategoryGoals
Lead GenContact form, Newsletter, Demo request
E-commerceAdd to cart, Checkout start, Purchase
EngagementVideo play, PDF download, Share

Value Assignment

Tips for setting values:

  • Use actual revenue for purchases
  • Estimate lead value for forms
  • Use $0 for engagement goals
  • Be consistent across similar goals

Common Goals

Lead Generation

GoalTrigger
Contact formForm submission event
NewsletterEmail submit event
Demo requestDemo page URL
Content downloadPDF click event

E-commerce

GoalTrigger
Add to cartButton click
Begin checkoutCheckout URL
PurchaseThank you page
Create accountAccount created event

SaaS

GoalTrigger
SignupRegistration complete
Trial startTrial activation
Feature useIn-app event
UpgradeUpgrade complete

Troubleshooting

Goal Not Tracking

If conversions don't appear:

  1. Check trigger accuracy

    • URL exact or contains?
    • Selector correct?
    • Event name matches?
  2. Verify script installed

    • Tracking code on goal page?
  3. Test in debug mode

    • Are events firing?
  4. Check goal is active

    • Not disabled in settings?

Double Counting

If counting twice:

  • Enable "Once per session"
  • Check for duplicate triggers
  • Verify event not firing multiple times

Next Steps

Was this article helpful?