Back to Documentation

Goals

Track the actions that matter most to your business - signups, purchases, form submissions, and more.

Overview

Goals let you measure the actions you care about:

  • Pageview goals - Track visits to specific URLs (thank you pages, confirmation pages)
  • Event goals - Track custom events (signup, purchase, download)

Once set up, you'll see:

  • Total goal completions
  • Unique visitors who reached a goal
  • Goal rate
  • Daily trends
  • Landing page attribution

Creating goals

  1. Go to Dashboard → Goals
  2. Click Add Goal
  3. Enter a name (e.g., "Newsletter Signup")
  4. Choose type (Pageview or Event)
  5. Set the match criteria
  6. Click Create

Pageview goals

Track when visitors reach specific pages.

Exact match

Matches the exact URL path:

Match ValueMatchesDoesn't Match
/thank-you/thank-you/thank-you/
/signup/success/signup/success/signup/success?ref=email

Contains match

Matches any URL containing the string:

Match ValueMatches
thank/thank-you, /thanks, /order/thank-you
/success/signup/success, /order/success

Tip: Use "contains" for thank you pages that might have query parameters or slight URL variations.

Event goals

Track custom events fired via dataLayer.

First, add the event to your site:

javascript
// Fire when user signs up
dataLayer.push({ event: 'signup' });

// Fire on purchase
dataLayer.push({ event: 'purchase' });

Then create a goal with:

  • Type: Event
  • Match value: signup (exact event name)

Common goal events

GoalEvent Code
Newsletter signupdataLayer.push({ event: 'newsletter_signup' })
Account creationdataLayer.push({ event: 'signup' })
PurchasedataLayer.push({ event: 'purchase' })
Form submissiondataLayer.push({ event: 'form_submit' })
Demo requestdataLayer.push({ event: 'demo_request' })

Viewing goal data

The Goals dashboard shows:

  • Goals reached - Total goal completions
  • Unique visitors - Visitors who reached a goal (deduplicated)
  • Goal rate - Goals reached / Total visitors
  • Trend - Daily goal sparkline

Filter by time period to see trends over 7, 30, or 90 days.

Landing page attribution

In Dashboard → Landing Pages, you can see which entry pages drive the most goals:

  • Goals reached per landing page
  • Goal rate by entry point
  • Identify high-performing content

This helps you understand which pages attract visitors who reach a goal.

Managing goals

Edit a goal

Currently, goals cannot be edited. Delete and recreate if you need changes.

Delete a goal

  1. Go to Dashboard → Goals
  2. Click the delete icon next to the goal
  3. Confirm deletion

Warning: Deleting a goal removes its definition. Historical goal data in the events table is preserved.


Questions? Email hello@onceanalytics.com