How to Set Up Goals and Conversion Tracking on Your Website
· 4 min read · By Analytix66
A step-by-step guide to website goals: what to track, pageview, click, scroll, event and webhook goals, testing, values and common mistakes.
Traffic is nice. Customers are better. Goals (also called conversions) are how your analytics tool connects visits to the results you care about, such as sales, bookings, sign-ups and leads. Without them, you are guessing which pages and channels actually help your business.
This guide explains what to track, how the main goal types work, and how to set them up step by step.
What is a goal?
A goal is a specific action you want visitors to take. Each time someone completes it, your analytics records a conversion. Divide conversions by visitors and you get your conversion rate.
Goals let you answer questions like:
- Which traffic source sends people who actually buy?
- Which blog posts lead to newsletter sign-ups?
- Did the new landing page convert better than the old one?
- Are mobile visitors finishing the booking form?
Step 1: Decide what to track
Start with your business, not your website. Ask, "What does a visitor do right before they become valuable to me?" Then list those actions. Most sites have one primary goal and a few secondary goals.
Examples by business type
- Online store: purchase completed (primary), add to cart, checkout started.
- Local service: quote form sent (primary), phone number clicked, directions clicked.
- Software or app: account created (primary), pricing page viewed, demo booked.
- Blog or creator: newsletter sign-up (primary), affiliate link clicked, article read to the end.
Keep the list short. Five well-chosen goals beat thirty that nobody reviews.
Step 2: Pick the right goal type
Most analytics tools, including Analytix66, offer several ways to trigger a goal. Choosing the right one makes setup easier and data more reliable.
Pageview goals
The goal fires when someone visits a specific page, like /thank-you or /order-complete. This is the easiest type and needs no code. If your forms or checkout redirect to a confirmation page, start here. Wildcards help when the URL changes, for example order/* to match every order confirmation.
Click goals
The goal fires when someone clicks a specific element, such as a "Call now" button, a download link or a pricing toggle. You identify the element with a CSS selector like #call-button or .download-pdf. Ask your developer or use your browser's "Inspect" tool to find it.
Scroll goals
The goal fires when a visitor scrolls to a percentage of the page or until a specific element appears. This is useful for long sales pages or articles where reaching the call to action is itself a meaningful step.
Custom event goals
For actions that do not change the URL, such as a form submitted in a pop-up or a video played, you can fire a custom event with a small JavaScript snippet. The goal settings show you the exact snippet to copy.
Webhook goals
Some conversions happen off your site, like a payment confirmed by your payment processor or a booking confirmed in another app. A webhook goal gives you a private URL that other tools can call, so those conversions still appear in your reports.
Step 3: Create the goal
Here is how it works in Analytix66; other tools follow a similar pattern.
- Open your website's dashboard and go to Goals.
- Click Create a goal.
- Give it a clear name, such as "Quote form sent" rather than "Goal 1."
- Choose the trigger: pageview, click on element, scroll, custom event or webhook.
- Fill in the details: the page path, CSS selector, scroll percentage or event key.
- Optionally add a conversion value, such as the average order value or the estimated worth of a lead.
- Save the goal.
Step 4: Test it
Never assume a goal works. Test it yourself:
- Open your site in a private browser window.
- Complete the action: submit the form, click the button or reach the page.
- Check your real-time view or goal report to confirm the conversion appeared.
If nothing shows up, double-check the page path (including trailing slashes), confirm the CSS selector matches the element, and make sure the tracking code is on that page.
Step 5: Add values (optional but powerful)
Assigning a value turns conversions into money, which makes decisions much easier. If a typical customer is worth a certain amount and roughly one in several leads becomes a customer, you can estimate a value per lead. It does not have to be perfect; a consistent estimate is better than none. Use the same currency across the site so totals make sense.
Step 6: Read your goal reports
Once data comes in, slice conversions by:
- Source: which referrers and campaigns convert best. Tag your links with UTMs to make this precise, as explained in our traffic sources and UTM guide.
- Entry page: which content starts journeys that end in a conversion.
- Device: whether mobile visitors convert as well as desktop visitors.
- Country: where your best customers are.
Common goal-tracking mistakes
- Tracking the button, not the result. A click on "Submit" does not mean the form went through. If possible, track the thank-you page or a success event instead.
- Counting yourself. Your own test conversions can skew small sites. Note test dates or exclude your visits where possible.
- Too many goals. If everything is a goal, nothing is. Focus on actions tied to revenue.
- Forgetting to update. When you redesign or rename pages, revisit your goals.
Next steps: improve conversions
Once goals are in place, you can start improving them. Heatmaps show where people click and stop scrolling, and on-site promos can nudge visitors toward your offer. Read how to boost conversions with on-site promos without annoying visitors for ideas.
Try it on your own site
Analytix66 includes goals on every plan, with pageview, click, scroll, custom event and webhook triggers and optional conversion values. The Free plan includes 10 goals for one website, and higher plans include more. Create your free account and set up your first goal in a few minutes, or compare plans.
See your own traffic clearly
Privacy-friendly analytics, heatmaps, replays and AI insights. Free plan, no card needed.