Skip to content

How to Set Up Conversion Tracking Before You Spend on Ads

Set up conversion tracking before running ads: define the primary event, build it, test with a real order and avoid the errors that waste early budget.

By
Ajansia Editorial
Updated
Reading time
9 min read

Reviewed against primary sources. How we work

On this page
  1. 01Why tracking comes before the first dollar
  2. 02Step 1: Decide what counts as a conversion
  3. 03Step 2: Pick the tracking route
  4. 04Step 3: Build the events in the right order
  5. 05Step 4: Test with real clicks, not hope
  6. 06The errors that quietly waste budgets
  7. 07Pre-launch checklist
  8. 08Test first, spend second
  9. ··Frequently asked questions

Plenty of first campaigns lose their opening budget to a tracking problem, not an ad problem. The campaign looks fine and the clicks arrive. The dashboard shows zero sales, because nothing told the ad platform what happened after the click. Set up conversion tracking before you spend a cent, and test it with real clicks. This checklist gives the order that saves the most money.

Why tracking comes before the first dollar

Ad platforms optimize toward whatever signal you feed them. Give them a clean purchase or lead event and they learn who converts. Give them nothing, or the wrong thing, and they chase cheap clicks, a very different audience. Adding the tag later does not refund that stretch, because the budget is already spent and the platform has to start learning from the correct signal afterward.

There is a plain accounting reason too. If you cannot tie a sale to a campaign, you cannot judge whether the campaign pays for itself. Bid strategy, creative testing and everything else in paid media assume this number exists.

Step 1: Decide what counts as a conversion

Write the answer on paper before touching a tag manager. For a store, the primary conversion is a completed purchase. For a service business, it is a submitted quote form or a booked call. Everything else is a supporting step.

Keep the primary list short. One or two is normal for a small account. Mark page views, scroll depth and button hovers as conversions and the platform treats a casual visitor like a buyer, which turns your reported cost per conversion into a flattering fiction.

Primary versus supporting events

Primary events are the ones you would pay real money to get more of. Supporting events, such as add to cart, form started or pricing page viewed, are diagnostic. Track them, but set them as secondary (in Google Ads, observation only) so they do not steer bidding. They show where people drop off, which helps when the primary number looks weak.

Step 2: Pick the tracking route

Three common routes exist, and they can be combined.

  • Platform pixel or tag. A snippet from the ad platform fires in the browser. Fast to set up, and the platform reads it directly. Browser privacy settings and blockers can hide some events.
  • Tag manager. One container holds all your tags, and you control triggers without editing site code each time. A good default for anyone running more than one platform.
  • Server-side or conversions API. Your server or store platform sends events straight to the ad platform. It resists browser blocking better and usually needs developer or app-integration help.

For a first campaign on a hosted store builder, the built-in integration with the ad platform is often the least risky path. Custom-coded sites usually start with a tag manager. Move to the server route once spend is large enough that a few lost events cost real money.

Step 3: Build the events in the right order

Do the unglamorous bits first. Install the base tag on every page, confirm it loads once rather than twice, then add the conversion event on the page or action that proves the outcome.

  1. Install the base tag or container on all pages.
  2. Create the primary conversion event with a clear name, such as purchase or lead_submit.
  3. Attach a value if the platform allows it. For purchases, pass the order total. For leads, use a rough, consistent number you can defend, and mark it as an estimate in your own notes.
  4. Pass a transaction or lead identifier so the same order cannot be counted twice.
  5. Add supporting events: add to cart, begin checkout, form start.
  6. Set the primary event as the optimization goal, and mark supporting events as secondary or observation only.

Currency matters more than people expect. A purchase event reporting 49 with no currency code can be read as the wrong amount, and return figures drift without warning.

Step 4: Test with real clicks, not hope

Major platforms offer ways to check that events arrive: a preview mode in the tag manager, a debug view in analytics, an event-testing tool in the ad platform. Use all three, because they answer different questions. Preview mode shows which tags fired, in what order and with what data. The analytics debug view confirms the event reached analytics. The ad platform’s tool says whether the platform accepted it.

Then run a real end-to-end test. Click your own ad or a tagged link, complete a purchase or form with a cheap or zero-value test item, and watch for the event. Use a separate browser profile so cookies and extensions do not skew the result. Reports can lag by hours, so a missing number five minutes later proves little. A missing event in the live debug view does.

What a good test looks like

Say a hypothetical store tests with a discounted sample product. The tester arrives through a tagged link, adds to cart, checks out and lands on the confirmation page. The debug view shows add_to_cart, begin_checkout and purchase, each once, with the order total and currency attached. Pass. One event firing twice, or purchase firing again on a page refresh, is a fail even if the dashboard looks busy.

The errors that quietly waste budgets

Most failures fall into a short list. Learn it and one review will catch the majority.

  • Double counting. The base tag is installed twice, once by a plugin and once by hand, or the purchase event fires every time the confirmation page reloads.
  • Wrong trigger. The event fires on the click of the checkout button instead of the completed order, so abandoned carts count as sales.
  • Missing values. Purchases register with no value or the wrong currency, so return on ad spend cannot be computed.
  • Broken attribution parameters. A redirect, or a checkout hosted on another domain, strips the click identifier, and the sale shows up as direct traffic.
  • Consent gating. A cookie banner blocks the tag until consent, and nobody checked what happens for visitors who decline. That is expected where consent is required, but it changes how you read the numbers.
  • Test traffic left in. Your own test orders inflate early reports. Tag them or filter them out.

Cross-domain and third-party checkouts

If checkout lives on a different domain from the main site, treat it as its own tracking project. Visitors hop from your site to a payment or booking page, and the identifier linking the ad click to the sale has to survive the jump. Analytics tools have a setting for linking domains, and ad platforms handle it their own way. Test the path across the boundary specifically. A purchase that fires correctly on one domain can fail the moment a hosted checkout is involved.

Booking widgets and embedded forms are the second common culprit. When a form sits inside a frame supplied by another service, your page tag may never see the submission. The usual fix is a redirect to a thank-you page on your own domain, where the conversion fires cleanly.

Naming, ownership and a record of what you built

Keep one plain document listing every event: its name, its trigger, where it is used and who set it up. It sounds like admin. It is what saves you six months on, when a theme update breaks a trigger and nobody remembers how the purchase event worked.

Use consistent names across platforms where possible, because mapping errors creep in when analytics says purchase and the ad platform says something else. Assign one owner for the setup, even on a team of two.

Pre-launch checklist

Run through this the day before the campaign goes live, and again after any site change.

  • The primary conversion is defined in one sentence and set as the optimization goal.
  • The base tag loads once on every page.
  • A real test purchase or lead shows in the debug view with value, currency and an identifier.
  • The event does not fire on refresh or on abandoned steps.
  • The path across any external checkout domain keeps the click information.
  • Consent behavior is understood and documented, including what you lose from declined visitors.
  • Test orders are tagged or noted so they do not pollute reporting.
  • A named person owns the setup, and the event list is written down.

Numbers that mislead in the first week

Do not judge the first few days by the conversion count. Platforms often report with a delay and sometimes model part of the total, so early numbers can move after the fact. Compare against your own source of truth, such as the store’s order list or your CRM, and treat the platform’s figure as an estimate to reconcile against your records.

A gap between the two is normal. A huge gap, or one that opens right after a site change, points to a tracking fault. Investigate before changing a single bid.

Test first, spend second

Good tracking is dull, and it can repay the effort within the first week. Before you fund any campaign, define the one conversion that matters, build it, and complete a real test order you can see in a debug view. Pass, and you spend small while checking the numbers against your own orders. Fail, and you fix it first. The ads can wait a day.

Frequently asked questions

What is the minimum I need to track before running ads?

One primary conversion, such as a completed purchase or a submitted lead form, firing once per real outcome. Add the value and currency if the platform supports it. Everything beyond that is useful but optional on day one.

Do I need server-side tracking to start?

Not usually. A platform pixel or a tag manager is enough for a first campaign. Consider the server route when spend grows and browser blocking starts hiding a meaningful share of events.

How do I know my conversion is double counting?

Compare the platform's conversion count with your actual orders or leads over the same period. If the platform reports clearly more, check for a duplicate base tag and for an event that fires again when the confirmation page reloads.

Why do my ad platform and analytics numbers differ?

They use different attribution rules, time windows and modeling, so exact matches are rare. Treat your store or CRM records as the source of truth and use each platform's number as a directional estimate.

Should I track every button click as a conversion?

No. Marking minor actions as conversions teaches the platform to chase casual visitors. Keep primary conversions to outcomes you would pay for, and track the small steps as secondary events.

Sources2
  1. support.google.com/google-ads/answer/11461796
  2. support.google.com/tagmanager/answer/6107056

Links open the original pages. Spotted an error? Tell us and we will check it.

Saved guides

    Nothing saved yet. Use the Save button on any guide and it will wait here, in this browser only.

      Browse a topic

      ↑↓ moveEnter openEsc close