MarzleyTech Learn

Home / Learn / Digital marketing & SEO / SEO: how Google ranks websites, technical SEO, on-page SEO, content, backlinks and local SEO in Kenya

SEO: how Google ranks websites, technical SEO, on-page SEO, content, backlinks and local SEO in Kenya

SEO (search engine optimisation) is the work of making your website appear higher in Google (and Bing) when people search for what you offer: "plumber in Kilimani", "best laptops for students Kenya", "how to register a business name in Kenya". Visitors from search are valuable because they're actively looking; unlike ads, you don't pay per click. SEO takes time (often months) and there are no guaranteed #1 rankings, but steady, honest work brings compounding results. This unit explains how search engines work and the main areas of SEO, with practical steps for Kenyan businesses and websites.

How search engines work

  1. Crawling: Googlebot discovers pages by following links and reading sitemaps.
  2. Indexing: Google analyses each page (text, images, structure) and stores it in its index. Pages not indexed can't rank.
  3. Ranking: For each search, Google's algorithms choose and order the most relevant, helpful, trustworthy results, using hundreds of signals: relevance to the query, content quality, usability (mobile, speed, HTTPS), links from other sites, location (for local searches) and more.

Increasingly, results include AI overviews, maps, images, videos and "People also ask" boxes, so useful, clearly structured content matters even more.

Search intent

Every search has a purpose:

IntentExample searchWhat to create
Informational"how to start poultry farming in Kenya"Guides, how-tos, videos
Commercial investigation"best web hosting Kenya"Comparisons, reviews
Transactional"buy solar panel 300W Nairobi"Product/service pages with prices and clear buying steps
Navigational"KRA iTax login"The official page
Local"dentist near me", "salon in Westlands"Google Business Profile, location pages

Match the page type to the intent: a long guide won't rank for "buy" searches, and a product page won't rank for "how to".

Pillar 1: Technical SEO

Make sure Google can crawl, index and understand your site:

ItemWhat to do
HTTPSSecure the whole site
Mobile-friendlyResponsive design; most Kenyan users browse on phones
Speed / Core Web VitalsFast loading (LCP), stable layout (CLS), responsive interactions (INP)
XML sitemapsitemap.xml listing important pages, submitted in Search Console
robots.txtDon't accidentally block important pages or CSS/JS
Clean URLs/services/website-design not /page.php?id=17&x=2
Canonical tags<link rel="canonical"> tells Google the main version of duplicate pages
No broken linksFix 404s; use 301 redirects when pages move
Structured dataSchema.org markup (LocalBusiness, Product, Article, FAQ) helps rich results
One version of the siteRedirect http→https and www/non-www to one

Pillar 2: On-page SEO

Each important page should target one main topic/keyword (the keyword research lesson shows how to find them).

ElementBest practiceExample
Title tagUnique, ~50–60 characters, main keyword near the start, brand at the endWebsite Design in Nairobi – Fast, Mobile-Friendly Sites | Marzley
Meta description~150–160 characters, a persuasive summary (not a ranking factor, but affects clicks)"Professional websites for Kenyan businesses with M-Pesa payments, SEO and support. Get a free quote today."
H1 headingOne per page, describes the topicWebsite design for Nairobi businesses
Subheadings (H2, H3)Organise content; include related terms naturally"How much does a website cost in Kenya?"
URLShort, readable, hyphens/website-design-nairobi
ContentAnswers the searcher's questions completely; natural use of keywords and synonyms—
ImagesCompressed, descriptive file names, alt textalt="Responsive website on a phone for a Nakuru hotel"
Internal linksLink related pages with descriptive anchor text"see our website maintenance plans"
Calls to actionPhone, WhatsApp, quote form—
Python · runs live in the interactive lesson
def audit(title, description, h1_count, has_alt_text):
    issues = []
    if not 30 <= len(title) <= 60:
        issues.append(f"Title length {len(title)} (aim for about 30–60)")
    if not 70 <= len(description) <= 160:
        issues.append(f"Description length {len(description)} (aim for about 70–160)")
    if h1_count != 1:
        issues.append(f"{h1_count} H1 headings (use exactly one)")
    if not has_alt_text:
        issues.append("Images missing alt text")
    return issues or ["Basic on-page checks passed"]

print(audit("Home", "Welcome", 0, False))
print(audit("Website Design in Nairobi – Mobile-Friendly Sites | Marzley",
            "Professional websites for Kenyan businesses with M-Pesa payments, SEO and support. Get a free quote today.",
            1, True))

Pillar 3: Content

Google's guidance is to create helpful, reliable, people-first content. In practice:

  • Answer real questions customers ask (pricing, process, comparisons, local information).
  • Show experience: real photos, case studies, prices, local details, your own data.
  • Keep it accurate and updated (dates, prices, laws).
  • Cover topics thoroughly; group related articles into topic clusters linked to a main "pillar" page.
  • Avoid thin, copied or mass-produced AI text with no added value.

E-E-A-T

Google's quality raters look for Experience, Expertise, Authoritativeness and Trustworthiness, especially for "Your Money or Your Life" topics (health, finance, legal, safety). Show author names and credentials, contact details, physical address, reviews, clear policies and sources.

Pillar 4: Off-page SEO (backlinks and mentions)

Backlinks (links from other sites to yours) act like votes of confidence, especially from relevant, reputable sites.

Ways to earn them honestly:

  • Get listed in reputable Kenyan business directories and industry associations.
  • Partners, suppliers and clients linking to you ("website by...", case studies).
  • Local press, blogs and podcasts: share stories, data or expert comments.
  • Create genuinely useful resources (guides, calculators, templates) others want to cite.
  • Sponsor or participate in community events with online coverage.

Avoid buying links or joining link schemes: Google can ignore or penalise them.

Pillar 5: Local SEO

For businesses serving a location ("near me" searches and map results):

  • A complete, verified Google Business Profile (next lessons) with the right category, hours, photos and posts.
  • Consistent NAP (Name, Address, Phone) across your website, profile and directories.
  • Reviews: ask happy customers; reply to all reviews.
  • Location pages for each area you genuinely serve (with unique content, not copy-paste).
  • LocalBusiness structured data on your site.

Measure with Google Search Console

Free and essential:

  • Performance: queries people used, impressions, clicks, average position, click-through rate.
  • Indexing: which pages are indexed and why others aren't.
  • Sitemaps: submit and monitor.
  • Core Web Vitals and HTTPS reports.
  • Manual actions and security issues alerts.

Also use Google Analytics (traffic and conversions) and track enquiries/sales that came from organic search.

How long does SEO take?

New sites often take 3–6+ months to gain meaningful traffic; competitive keywords take longer. Local SEO for a Google Business Profile can show results sooner. Anyone promising "#1 on Google in a week" or "guaranteed rankings" is misleading you.

Mistakes to avoid

MistakeBetter
Keyword stuffing ("cheap website design Nairobi cheap website")Write naturally for people
Same title on every pageUnique titles and descriptions
Copying content from other sitesOriginal, experience-based content
Blocking the site from Google (a leftover "noindex" or robots.txt from development)Check after launch
Slow, heavy imagesCompress and resize
Buying backlinks or fake reviewsEarn them honestly
Ignoring mobile usersMobile-first design
Think about it: A new Nairobi bakery website has a home page titled "Home", no text except a big slider, images 4 MB each, and no Google Business Profile. List the top five SEO fixes in priority order.Show answer

1) Create and verify a Google Business Profile with photos, hours and category, and start collecting reviews. 2) Write unique titles and descriptions (e.g. "Custom Birthday Cakes in Nairobi – Fresh Daily | Bakery Name"). 3) Add real text content: products, prices, ordering and delivery areas, with one H1 and helpful headings. 4) Compress and resize images and add alt text to speed up the mobile site. 5) Submit a sitemap in Search Console and add LocalBusiness structured data plus consistent NAP.

Summary

  • Google crawls, indexes and ranks pages by relevance, quality, usability, links and location; match pages to search intent.
  • Technical SEO: HTTPS, mobile, speed, sitemap, robots.txt, clean URLs, canonicals, redirects, structured data.
  • On-page: unique titles and descriptions, one H1, clear headings, readable URLs, alt text, internal links, calls to action.
  • Helpful, experience-rich content with E-E-A-T; earn genuine backlinks; build local SEO with Google Business Profile, NAP and reviews.
  • Measure in Search Console and Analytics; expect months, avoid guarantees and spam tactics.

Check yourself

  1. What does SEO stand for?

    Show answer

    search engine optimisation

  2. Links from other websites to yours are called?

    Show answer

    backlinks

  3. Which file lists your pages for search engines?

    Show answer

    sitemap.xml

  4. Which HTML tag's text appears as the blue headline in Google results?

    Show answer

    title

  5. What does the first E in E-E-A-T stand for?

    Show answer

    Experience

  6. What does NAP stand for in local SEO? (three words)

    Show answer

    name address phone

Lesson 1 of 10 in Digital marketing & SEO · Printable course notes