UTM parameters and tracking: where did your customer come from?
The five pieces of tracking and what each one answers.
- Published
- Read
- 8 min
- By
- Smaran Challapalli
On this page
- An illustration to carry through
- What are the five pieces of tracking?
- How does a visit get recorded?
- What is a conversion?
- Why do different tools show different numbers?
- What mistakes do people make with UTM parameters and tracking?
- What do good and bad tracking look like?
- What about consent and privacy?
- What words will you hear about tracking?
- What should you take from this?
- Do it yourself, or hand it over
- Questions
Key takeaways
- Tracking is how you find out which of your efforts brought a customer, and it comes down to five pieces: GA4, ad pixels, server-side events, UTM parameters and Search Console.
- UTM parameters are small labels on a link that tell your analytics which post, ad or message sent each visitor, and they are free.
- A conversion is whatever you decide counts as a result, so start with two or three and tell each tool what they are.
- Different tools show different numbers because they count differently, so pick one reference per question and compare trends.
- Tracking involves personal data, so tell visitors about it, collect only what you need and keep a short privacy page.
Tracking is how you find out which of your efforts brought a customer. Without it, you spend on ads, posts and Google and then guess which one worked. With it, you can say "this campaign brought these enquiries, and these became sales". The simplest piece is UTM parameters, the labels you add to a link so your analytics can read where each visit came from.
It is not as technical as it sounds. There are five pieces, and each answers a different question. This is the first post in a series on tracking, and it explains what each piece is. The numbers a business tracks every week are listed in five marketing numbers to check every week, and more is collected under tracking and measurement.
An illustration to carry through
I will use a made-up example, with round numbers. It is an illustration, not a client. Imagine a D2C brand selling kurtas from its own Shopify store. It spends money on Instagram ads and Google ads, sends a WhatsApp broadcast to past customers each month, and gets some visitors from search. One month it makes 100 sales. The founder wants to know which of those four sources brought them, so she can put the next rupee in the right place. That question is called marketing attribution, and the pieces below are what let you answer it.
What are the five pieces of tracking?
The five pieces are analytics, ad pixels, server-side events, UTM parameters and Search Console, and each answers a different question.
Analytics (GA4). Google Analytics 4 is a free tool that counts visitors to your site and records what they do: which pages they open, where they came from, whether they sent an enquiry. It answers "what happened on my site".
Ad pixels. A pixel is a small piece of code from an ad platform (Meta, Google) that sits on your site. It tells the platform when someone who saw your ad did something. That feedback also helps the platform show your ads to similar people.
Server-side events. A pixel runs in the visitor's browser, and browsers can block it. A server-side event is sent directly from your server to the platform instead. Meta's version is called the Conversions API. Many businesses run both together, so that if one misses an event the other catches it.
UTM parameters. These are small labels added to the end of a link, like ?utm_source=instagram&utm_campaign=diwali. When someone clicks, your analytics reads the label and knows exactly which post or ad sent them. They are free and they are the single most useful habit.
Search Console. Google Search Console is a free tool that shows what people typed into Google before they saw your site, how often you appeared, and how often they clicked. It answers "how do people find me in search".
The pieces at a glance
| Piece | Question it answers | Who provides it | Cost |
|---|---|---|---|
| Analytics (GA4) | What do visitors do on my site, and where did they come from | Free | |
| Ad pixel | Did the people who saw my ad do something | Meta, Google and others | Free |
| Server-side events | Same as the pixel, but sent from my server so fewer are lost | Meta (Conversions API) and others | Free to use, may need a developer |
| UTM parameters | Which exact link, post or ad sent this person | You | Free |
| Search Console | What did people search before they found me on Google | Free |
For the kurta brand: GA4 shows that 100 sales came from four sources. UTM parameters are what make the sources readable. Without them, a WhatsApp broadcast and a direct visit both show up as "direct", and the founder cannot tell them apart.
How does a visit get recorded?
A visit is recorded in four steps, and a missing link in any of them loses the story of where the sale came from.
- A customer taps an Instagram ad. The link has UTM parameters: source instagram, medium paid_social, campaign diwali.
- The store loads. GA4 reads the parameters and records "this visit came from the Diwali Instagram campaign". The Meta pixel records that a person arrived from an ad.
- She adds a kurta to the cart and buys. The store sends a purchase event to GA4 and the Meta pixel. A server-side copy goes to Meta too.
- Reports show one sale, credited to Instagram, Diwali. Meta may count it, GA4 may count it, and your order system definitely has it.
If any link in that chain is missing (no UTM parameters, a blocked pixel, a purchase event that never fires), the sale still happens but you lose the story of where it came from.
What is a conversion?
A conversion is a visitor doing something you care about. For a store it is a purchase. For a lead business (a clinic, a CA firm, a school) it is an enquiry: a form submitted, a WhatsApp tap, a call. You decide what counts, and you tell each tool. Tools can only report what you have told them to look for.
A small business should start with two or three. Too many and the numbers blur.
Why do different tools show different numbers?
Different tools show different numbers because each one measures differently, and nobody is lying. This is the question that worries most founders. Meta says 40 sales, Google Analytics says 28, your bank says 35. The usual causes:
- They look back over different time windows after a click or view.
- Each platform credits itself when a customer saw several ads. Both claim the sale.
- Browsers and ad blockers hide some visitors from some tools.
- Analytics counts when the event happens. Ad platforms may count when the ad was seen.
- Refunds, cancelled orders and test orders show up in some places and not others.
The right habit is to expect the numbers to differ, pick one source as your reference for each question, and compare trends rather than single days. A later post in this series goes deeper on which number to trust.
What mistakes do people make with UTM parameters and tracking?
These six are the ones I see most.
- Tracking everything and trusting nothing. Twenty events, no idea which one matters.
- No UTM parameters. Most traffic appears as "direct" and the real source is lost.
- Counting clicks as success. A click is not an enquiry or a sale.
- Believing one dashboard. Each tool measures differently, as above.
- Accounts owned by an agency. If they leave, so does your history.
- Installing tracking and never testing it. Tags fail quietly after site changes.
What do good and bad tracking look like?
When it is going well, you can answer "where did last week's sales come from" in two minutes, and the answer roughly agrees with your order system. When it is going badly, the biggest source in your reports is "direct" or "unassigned", the platforms claim more sales than you made, and nobody can say which number is right.
What about consent and privacy?
Tracking involves personal data, and people have a right to know about it. In India, the Digital Personal Data Protection Act sets rules for collecting and using personal data, and its rules are being phased in as of November 2026. If you sell to people in Europe or the UK, stricter cookie consent laws apply. The safe habits are simple: tell visitors you use analytics and ad tools, have a short privacy page, do not collect more than you need, and never send sensitive details such as health information to an ad platform. Where the rules apply to you in detail, ask a lawyer rather than a blog. I am not one.
What words will you hear about tracking?
- Event: one thing a visitor did, like a click or a purchase.
- Key event: an event you mark as important. GA4's name for what used to be called a conversion.
- Attribution: deciding which source gets credit for a sale.
- Tag manager: a tool for adding and managing tracking codes without editing the site each time.
- First-party data: information you collect yourself, such as your customer list.
- ROAS: return on ad spend. Revenue from ads divided by what you spent.
- CPL: cost per lead.
- Cookie: a small file a browser stores to recognise a returning visitor.
What should you take from this?
Decide what a conversion is for your business. Label every link you share with UTM parameters. Set up analytics and Search Console. Add the ad platform pixels when you start paying for ads. Accept that numbers will not match, and learn why. If you already run ads, how to run your first Meta campaign shows where the pixel fits in.
Do it yourself, or hand it over
If you want to do it yourself
- Write down the two or three actions that count as a conversion for you.
- Create a GA4 property and a Search Console property under your own account.
- Start tagging every link you share with UTM parameters.
- Pick one source of truth for sales, ideally your bank or order system.
- Add a short privacy page and a plain note about analytics.
If you would rather hand it over
We set up tracking as part of our marketing work, so you can see which ads, posts and searches bring enquiries and sales rather than likes. The accounts stay in your name. See how we do marketing, and SEO and AI search if search is your main channel.
Questions
Do I need all five pieces of tracking?
No. Start with GA4, Search Console and UTM parameters, which are free and need no developer. Add ad pixels when you start paying for ads, and server-side events when the platforms report far fewer results than your orders.
Why does my store platform show different numbers from GA4?
Each tool counts differently: time windows, who gets credit when several ads were seen, what browsers hide, and whether refunds are included. Pick one source as your reference for each question and compare trends.
Will tracking slow my site?
Tags add some weight, so keep the list short and remove ones you no longer use. A tag manager helps you control what loads.
Is it my job to understand all this?
You need to know what a conversion is for your business and which source you trust for sales. Someone else can do the installation, as long as the accounts stay in your name.