MarzleyTech Learn

Home / Learn / Digital marketing & SEO / Online ads and analytics: Google Ads, Meta and TikTok ads, budgets, targeting, tracking, ROI and optimisation

Online ads and analytics: Google Ads, Meta and TikTok ads, budgets, targeting, tracking, ROI and optimisation

Organic SEO and social media take time. Paid ads put your business in front of the right people today: someone searching "emergency plumber Kileleshwa", a mother in Mombasa interested in baby products, a student looking for laptop deals before university opens. But ads can also burn money quickly if you don't target, track and optimise carefully. This unit teaches how the main ad platforms work, how to plan budgets, write ads, track results with analytics, and calculate whether ads are actually profitable.

When to use ads

Ads make sense when...Fix first if...
You have a clear offer and know your profit marginYour website/WhatsApp can't handle enquiries well
You need results quickly (launch, season, event)You don't know who your customer is
You want to test demand for a productThe product has poor reviews or stock problems
Organic channels are working and you want to scaleYou can't track results at all

Search ads vs social ads

Search ads (Google, Bing)Social ads (Meta, TikTok, LinkedIn)
Who sees themPeople searching for something nowPeople who match a profile while scrolling
IntentHigh: actively lookingLower: interrupting; creates demand
StrengthCapture existing demandDiscovery, awareness, impulse buys, retargeting
Example"buy office chairs Nairobi"A video of ergonomic chairs shown to office workers aged 25–45 in Nairobi

Google Ads

How it works

Advertisers bid on keywords. When someone searches, Google runs an auction considering your bid and your ad's quality (relevance, expected click-through rate, landing page experience). You pay when someone clicks (cost per click, CPC).

Keywords and match types

Match typeSyntaxShows for
Broadoffice chairsRelated searches, including ones without those words (needs care and good conversion data)
Phrase"office chairs"Searches including the meaning of the phrase ("buy office chairs in Nairobi")
Exact[office chairs]Searches with the same meaning as the keyword
Negative-free, -jobs, -second handExcludes searches you don't want

Negative keywords save money: a furniture seller doesn't want clicks from "office chair repair jobs" or "free office chairs".

Writing search ads

Responsive search ads combine several headlines and descriptions:

Headline 1: Office Chairs in Nairobi
Headline 2: Ergonomic Chairs from KSh 8,500
Headline 3: Free Delivery Within Nairobi
Description: Comfortable, durable office chairs with 1-year warranty. Pay via M-Pesa on delivery.
Description: Visit our Westlands showroom or order on WhatsApp today.

Add assets/extensions: sitelinks (Shop Chairs, Desks, Contact), call buttons, location (linked to Google Business Profile), callouts ("M-Pesa accepted", "1-year warranty").

Campaign types

  • Search: text ads on results pages.
  • Performance Max: Google's automated campaign across Search, YouTube, Display, Maps and Gmail (needs good conversion tracking).
  • Display: banner ads on websites (awareness, retargeting).
  • YouTube video ads.
  • Shopping (for e-commerce product feeds, where available).

Use location targeting (your delivery area), ad schedules (when you can answer calls) and a daily budget cap.

Meta (Facebook and Instagram) ads

Objectives

Choose the objective matching your goal: Awareness, Traffic, Engagement (including messages), Leads (instant forms), App promotion, Sales. In Kenya, Click-to-WhatsApp ads (Engagement/Messages) are very popular: the ad opens a WhatsApp chat with your business.

Audiences

AudienceExample
Core (demographic/interest)Women 22–40 in Nairobi interested in beauty and fashion
CustomWebsite visitors (via the Meta pixel), customer lists (with consent), people who engaged with your page/videos
LookalikePeople similar to your best customers

Broad targeting with strong creatives often works well because Meta's algorithm finds buyers, but sensible location and age limits still matter for local businesses.

Creatives

The ad's image or video is the biggest factor in performance:

  • Vertical video for Reels/Stories, square for feeds.
  • Hook in the first seconds; show the product in use and the price; real customers and testimonials.
  • Clear call to action button: "Send WhatsApp message", "Shop now", "Learn more".
  • Test several creatives at once; turn off losers, keep winners.

Boost post is a simple option but gives less control than Ads Manager.

TikTok and YouTube ads

  • TikTok Ads Manager: in-feed video ads that look like native TikToks; Spark Ads boost organic posts (yours or creators'). Great for younger audiences and products that demo well.
  • YouTube: skippable in-stream ads (pay when viewed for 30 s or interacted), in-feed ads, Shorts ads; good for tutorials, brand stories and remarketing.

Budgets and testing

  • Start small (e.g. a few hundred to a few thousand shillings a day depending on goals) and give campaigns at least several days to learn before judging.
  • Test one variable at a time: creative, audience, headline or offer.
  • Scale budgets gradually on winning ads (e.g. 20–30% increases).
  • Know your numbers first: if your profit per sale is KSh 1,000, you can't pay KSh 1,500 per sale.
Python · runs live in the interactive lesson
spend = 15000          # KSh
impressions = 120000
clicks = 1800
sales = 30
revenue = 135000
profit_margin = 0.35   # 35% gross margin

ctr = clicks / impressions * 100
cpc = spend / clicks
conv_rate = sales / clicks * 100
cpa = spend / sales
roas = revenue / spend
profit = revenue * profit_margin - spend

print(f"CTR {ctr:.2f}% | CPC KSh {cpc:.1f} | Conversion rate {conv_rate:.2f}%")
print(f"CPA KSh {cpa:.0f} | ROAS {roas:.1f}x | Profit after ads KSh {profit:,.0f}")
print("Break-even ROAS for this margin:", round(1 / profit_margin, 2))

ROAS of 9x with a 35% margin is profitable; the break-even ROAS here is about 2.9x.

Landing pages that convert

Sending ad clicks to a cluttered home page wastes money. A good landing page:

  • Matches the ad's promise (same product, price and offer).
  • Loads fast on mobile.
  • Has one clear goal: WhatsApp button, call button, order form or booking.
  • Shows price, benefits, photos/video, reviews, delivery and payment info (M-Pesa), guarantee.
  • Removes distractions (minimal navigation).

Tracking and analytics

UTM parameters

Add tags to links so analytics shows where visits came from:

https://shop.example.co.ke/office-chairs?utm_source=facebook&utm_medium=paid_social&utm_campaign=sept_chairs&utm_content=video_a
TagMeaning
utm_sourcePlatform: google, facebook, tiktok, newsletter
utm_mediumType: cpc, paid_social, email, organic_social
utm_campaignCampaign name
utm_contentWhich ad/creative

Conversion tracking

  • Google Ads conversion tracking and Google Analytics 4 (GA4) events: form submissions, WhatsApp clicks, calls, purchases.
  • Meta Pixel and Conversions API; TikTok Pixel.
  • For WhatsApp and phone sales, ask "How did you hear about us?", use unique offer codes, and record leads in a simple sheet or CRM.
  • Follow privacy laws: show a cookie/privacy notice and don't upload customer data without consent.

Key metrics

MetricFormulaTells you
CTRClicks ÷ impressionsIs the ad attractive and relevant?
CPCSpend ÷ clicksCost of traffic
Conversion rateConversions ÷ clicksIs the landing page/offer convincing?
CPA / CPLSpend ÷ conversions (or leads)Cost to win a customer/lead
ROASRevenue ÷ ad spendRevenue per shilling spent
CPMCost per 1,000 impressionsCost of reach

Diagnose: low CTR → improve creative/targeting; high CTR but low conversions → fix the landing page, offer or follow-up speed; good CPA → scale.

Common mistakes

MistakeFix
No conversion trackingSet up before spending
Targeting all of Kenya when you deliver only in NairobiSet locations correctly
No negative keywordsReview search terms weekly and add negatives
One ad creativeTest 3–5
Judging after one dayGive campaigns time to learn
Slow replies to WhatsApp leadsReply within minutes; leads go cold fast
Copying competitors' prices without knowing marginsCalculate break-even CPA/ROAS
Think about it: A clinic spends KSh 20,000 on Facebook ads and gets 400 WhatsApp messages but only 6 bookings. Where is the problem likely, and what would you change?Show answer

The ad attracts attention (cheap messages), so the problem is likely after the click: slow or unclear replies, no prices or booking steps, the wrong audience (people outside the area or just curious), or an offer that attracts low-intent clicks. Improve response speed with saved replies and a booking link, qualify leads (location, service), refine targeting, adjust the ad to state the price/location clearly, and track bookings per ad.

Summary

  • Use ads when you have a clear offer, known margins, good follow-up and tracking.
  • Search ads capture active demand (keywords, match types, negatives, extensions); social ads create demand with strong creatives and audiences.
  • Meta Click-to-WhatsApp, TikTok and YouTube ads suit many Kenyan businesses; test creatives and scale winners gradually.
  • Send traffic to fast, focused landing pages; track with UTM tags, pixels, GA4 and lead records.
  • Measure CTR, CPC, conversion rate, CPA and ROAS against break-even numbers; optimise weekly and avoid common mistakes.

Check yourself

  1. Which ad platform shows ads when people are actively searching?

    Show answer

    Google Ads

  2. You spent KSh 2,000 and got 4 sales. What is the cost per acquisition (KSh)?

    Show answer

    500

  3. 1,000 people saw an ad and 20 clicked. What is the CTR (%)?

    Show answer

    2

  4. What are the tags added to links to track where clicks came from? (4 letters)

    Show answer

    UTM

  5. Revenue KSh 50,000 from KSh 10,000 ad spend. What is the ROAS?

    Show answer

    5

  6. Which keyword type stops your ad showing for unwanted searches?

    Show answer

    negative

Lesson 7 of 10 in Digital marketing & SEO · Written by · Course notes