How to Set Up Conversion Goals on Your Website
A conversion goal turns a vague aim into a number you can track. Learn how to choose the right goals, the difference between URL goals and event goals, and how to avoid the mistakes that make goal data unreliable.
Short answer: pick one to three actions that represent real value, define each as either a page visit (a thank-you URL) or a custom event fired when the action truly succeeds, then check the goal by completing it yourself. A goal should count confirmed outcomes, never button clicks.
Table of Contents
- Choose the Right Goals
- URL Goals vs Event Goals
- Step by Step
- Adding a Value
- Seven Mistakes That Ruin Goal Data
- What to Do Once Goals Exist
- Key Takeaways
Choose the Right Goals
| Business | Primary goal | Useful secondary goal |
|---|---|---|
| Online store | Order completed | Add to cart |
| SaaS | Signup completed | Activation event |
| Lead generation | Form submitted | Phone link tapped |
| Content site | Newsletter signup | Return visit |
| Marketplace | Booking or purchase | Listing contacted |
Limit yourself. One primary goal and one or two supporting ones is enough. Ten goals means nobody knows which matters.
A good goal is:
- Binary. It happened or it did not.
- Confirmed. Recorded after success, not on intent.
- Tied to value. Someone would notice if it stopped.
URL Goals vs Event Goals
URL goal. The visitor reached a specific page, typically a confirmation page such as /thank-you or /order-received.
- Simple, no code.
- Works only if success has its own page.
- Breaks if the page can be reached without converting, for example by refreshing or bookmarking it.
Event goal. Your code fires a named event when the action succeeds.
- Works inside single-page apps and modal flows.
- Can carry a value, such as an order total.
- Needs a line of code.
Use a URL goal when there is a unique confirmation page, and an event goal for everything else.
Step by Step
1. Write the definition
"A signup is counted when the server accepts the registration." Be precise about the moment.
2. Find the success point
Either the confirmation URL, or the place in your code that runs after the server responds successfully.
3. Fire the event, if needed
// after the server confirms success
deepsync("track", "signup_completed");Put this in the success handler, not on the button's click.
4. Create the goal
In DeepSync a goal is one target event, matched by event type and optionally a path or a value field (goals docs). Point it at your page path or your custom event name.
5. Test it yourself
Complete the action in a normal browser window, then check that the goal count rises by exactly one. Then fail on purpose, with a wrong password or an empty field, and confirm it does not count.
6. Note the start date
Goal data begins when the goal is defined correctly. Record the date so nobody later reads the earlier blank as zero conversions.
If the loader has not finished, queue the call
The DeepSync loader is asynchronous. An event fired very early, such as a purchase event on a confirmation page, can run first. Add the command-queue stub from the SDK docs above your loader tag so the call is buffered and sent once the SDK is ready.
Adding a Value
If the goal has a monetary value, send it:
deepsync("track", "purchase_completed", {
value: 4999,
currency: "INR",
items: 3,
});With a value field set, the Conversions view reports total conversions, conversion rate against total sessions, and revenue attributed to that goal over your date range.
Seven Mistakes That Ruin Goal Data
- Counting clicks. A click on "Pay" is not a payment.
- Counting page loads that can be repeated. Refreshing the thank-you page adds a conversion.
- Firing twice. The event sits in a component that renders more than once.
- Different names for one thing.
signup,sign_up, andSignupDonesplit the count. - No test. The goal was never completed by a person before being trusted.
- Consent gaps ignored. If recording waits for consent, goals only count consenting visitors. Compare with your server's count to know the gap.
- Changing the definition silently. A redefinition mid-quarter makes the trend meaningless unless it is annotated.
What to Do Once Goals Exist
- Compare by channel. Attribution connects each session's source to the goal it produced.
- Build a funnel leading to the goal (guide).
- Filter recordings to sessions that reached the page and did not complete the goal.
- Set a baseline by device and source before changing anything (benchmarking).
Free plans include one goal; Pro and above are unlimited.
Key Takeaways
- Count confirmed outcomes, not clicks.
- Use URL goals for confirmation pages and event goals for everything else.
- Test success and failure yourself before trusting the number.
- Keep names consistent and note the start date.
Conclusion
A goal is ten minutes of setup that every later analysis depends on. Get the definition right and the rest of your reports become trustworthy.
Frequently Asked Questions
Related articles
Stay in the loop
Get the latest insights on product analytics and user behavior delivered to your inbox.



