Sub topic 1
Start with goals: what counts as a conversion
Tracking setup goes wrong most often at the start, before any tag is installed. Teams add a script, collect thousands of page views, and then can't say whether social media is working, because nobody defined what "working" means. This chapter covers how to turn a business goal into a small set of conversions and metrics. The rest of the tutorial builds the tracking for them.
Prerequisites
This chapter assumes you already have the following:
- Basic HTML knowledge, including how a page loads scripts.
- An understanding of a URL and its query string (the part after
?). - Familiarity with creating a post or an ad on at least one social platform.
- Basic JavaScript syntax. This chapter has little code, but later chapters rely on it.
You don't need a Google Analytics account yet. You will install GA4 (Google Analytics 4) in a later chapter.
What a conversion is
A conversion is a visitor action that has value to your business. Page views and clicks are activity. Conversions are the outcomes that activity is meant to produce.
Which actions count depends on your business model:
- An online shop counts a completed purchase.
- A software company counts a free-trial sign-up or a demo request.
- A publisher counts a newsletter subscription.
- A local business counts a phone-call click or a booking-form submission.
Two terms are worth keeping apart. In GA4, an event is any recorded interaction, such as page_view, click, or sign_up. A key event is an event you have flagged as important to the business. GA4 used to call these "conversions" and renamed them to "key events". Many ad platforms still say "conversions", so you will see both words. This tutorial uses "conversion" for the business idea and "key event" for the GA4 setting.
Macro and micro conversions
Most sites have one or two main outcomes and several smaller steps leading to them.
- A macro conversion is the main outcome, such as a purchase or a paid sign-up.
- A micro conversion is a smaller step that signals progress, such as adding to cart, starting a checkout, watching a product video, or joining an email list.
Micro conversions matter for social traffic in particular. Social visitors usually aren't looking for anything when they click. They saw a post while scrolling. Few of them buy on the first visit, so a macro-only view can make a healthy channel look like a failure. Micro conversions show earlier whether the right people are arriving and engaging.
Don't flag everything as a micro conversion, though. Each one you track needs a decision behind it. If you wouldn't change a post, an audience, or a landing page based on the number, leave it out.
From business goal to metric
Work backwards from the business goal. The chain has four links:
- Business goal: what the organization wants, such as more revenue or a larger customer base.
- Social objective: the part social media plays, such as "bring in new prospects who sign up for a trial".
- Conversion event: the website action that shows the objective was met.
- Metrics: the numbers you read to judge performance.
Skipping a link causes recognizable failures. If you jump from the business goal straight to metrics, you end up reporting likes and follower counts. If you start with the tool, you track whatever the tool makes easy.
Choosing metrics
Platform metrics and website metrics answer different questions. Social platforms report what happened on their side. Your analytics reports what happened after the click.
| Metric | Where it comes from | What it tells you | Common misuse |
|---|---|---|---|
| Impressions and reach | Social platform | How many people saw the content | Treating it as proof of interest |
| Link clicks | Social platform | How many people clicked through | Assuming each click became a site visit |
| Sessions | Web analytics | Visits that arrived from the channel | Comparing directly to platform clicks |
| Engagement rate | Web analytics | Share of sessions that were engaged | Reading it without the session's intent |
| Conversions (key events) | Web analytics | Completed goal actions | Counting duplicates or test events |
| Conversion rate | Calculated | Conversions divided by sessions or users | Comparing across channels with different intent |
| Cost per conversion | Spend divided by conversions | Efficiency of paid social | Using platform-reported conversions alone |
| Revenue or lead value | Web analytics or CRM | Money or value generated | Ignoring that the value is estimated |
Platform clicks and analytics sessions rarely match, and the final chapter of this tutorial explains why. For now, avoid mixing the two sources inside one calculation. If you divide analytics conversions by platform impressions, the result has no clear meaning.
Conversion rate has two denominators
Conversion rate is conversions divided by something, and the "something" changes the answer. Suppose a campaign brought 2,000 sessions from 1,600 distinct users, and 40 sign-ups were recorded:
- Per session: 40 / 2,000 = 2.0%.
- Per user: 40 / 1,600 = 2.5%.
Both are valid. Pick one, write it down, and use it for every report. Changing the denominator between months produces a trend that exists only on paper.
Putting a value on conversions
A count of conversions treats a newsletter sign-up and a $900 order alike. When possible, attach a value so channels can be compared by worth and not only by volume.
- For purchases, use the order total. GA4's
purchaseevent carriesvalueandcurrencyparameters. - For leads, estimate a value from your history. If 1 in 10 leads becomes a $500 customer, a lead is worth about $50.
- For micro conversions, use a small value or none.
A lead value is an assumption, so document how you derived it. Revisit it when your close rate changes.
Write a measurement plan
A measurement plan is a short document that lists each goal, its conversion event, and the metrics tied to it. It takes little time to write, and every later step reads from it: event names, key event flags, UTM conventions, and report layouts.
goal: Grow trial sign-ups from social media
audience: Small-business owners
channels:
- instagram (paid and organic)
- linkedin (organic)
conversions:
macro:
- name: sign_up
meaning: Visitor submits the free-trial form
value: 50 # estimated value of a trial lead, USD
micro:
- name: view_pricing
meaning: Visitor opens the pricing page
metrics:
- sessions by source / medium
- sign_up count and conversion rate (per session)
- cost per sign_up (paid only)
review_cadence: monthly
owner: marketing leadThis file isn't loaded by any tool. It is a planning artifact for people. Keeping it in the same repository or shared folder as the site's tracking code helps, because developers can check implemented event names against it.
Naming conventions
Decide event names now. GA4 event names are case-sensitive, so Sign_Up and sign_up become two separate events. Use lowercase with underscores. Where GA4 has a recommended event, such as sign_up, generate_lead, or purchase, use that exact name. Recommended events unlock built-in reporting and carry agreed parameter names. Invent a custom name only when no recommended one fits.
Common mistakes
- Counting too many conversions. If page views, scrolls, and clicks are all marked as conversions, the conversion total grows without meaning. Keep key events to the actions you would pay for.
- Counting the wrong moment. A "thank you" page view can fire again if someone reloads it or bookmarks it. An event tied to the form submission, or to a confirmed order, is more reliable. Later chapters show how.
- Judging all channels by last-click purchases. Social often introduces a buyer who returns later through search or email. Attribution is covered in its own chapter, but the planning consequence is here: decide up front whether you want to measure introductions, direct sales, or both.
- Setting no baseline. Before launching a campaign, record current numbers, such as weekly sessions and sign-ups. Without that, a result of 40 sign-ups cannot be called good or bad.
- Setting no time window. State the period, such as "per calendar month", and how long after a click a conversion still counts.
What comes next
With a plan in hand, the next chapters follow the visitor's path. First, how social visitors arrive at your site, then how to label their links with UTM parameters, and then how to install GA4, record events, and flag key events. Each step implements a line of your measurement plan.
Exercise
A company sells project-management software. Its social team wants to know whether Instagram ads are worth the budget. Name one macro conversion and one micro conversion it could track. Then give one metric that would be misleading if used alone, and say why.
Show answer
Macro conversion: a paid-plan sign-up, or a free-trial sign-up if trials are the main goal. Micro conversion: viewing the pricing page, or starting the sign-up form. A misleading metric on its own is link clicks reported by Instagram. Clicks show interest in the ad, but they say nothing about what visitors did on the site, and platform clicks usually differ from analytics sessions. Cost per click is similarly weak, because a cheap click that never converts wastes budget. A better measure is cost per sign-up, using analytics conversions.
Exercise
A campaign sent 2,500 sessions from 2,000 users and produced 50 purchases. Calculate the conversion rate per session and per user. Which should you use in a monthly report, and what should you do about the choice?
Show answer
Per session: 50 / 2,500 = 2.0%. Per user: 50 / 2,000 = 2.5%. Either is acceptable, but pick one and record it in the measurement plan. Use the same denominator in every report so that month-to-month changes reflect behavior and not a change in calculation.
Exercise
Why should you use the recommended GA4 event name generate_lead for a contact-form submission instead of naming it Contact_Form_Sent?
Show answer
Recommended event names carry agreed parameter conventions and work with built-in GA4 reporting. Event names are also case-sensitive, so a custom mixed-case name is easy to mistype and can split the data across variants such as contact_form_sent. Use a custom name only when no recommended event fits.