NotionCue
AI Visibility Platform
All systems live
Sign in →
AEO Guidellms.txt GeneratorRobots.txtBLUF TemplatesBlogChangelogAbout
← Blog
TechnicalAug 8, 2026·16 min read

Technical SEO for Developers: The Engineering Decisions That Break or Build Organic Traffic

Most SEO issues are introduced during development, not after launch. NotioncCue helps dev teams see how architectural choices affect visibility in Google and AI search engines.

SS
Sudhir Singh
Senior SEO & AEO Specialist · NotioncCue
👨‍💻

SEO documentation aimed at developers usually reads like a checklist written by someone who has never deployed a production application. Add meta tags, write alt text, make it fast. Those recommendations are correct but they miss the structural decisions, the ones made in sprint planning and architecture reviews, that determine whether a site can rank at all.

This post is for developers who build and maintain production web applications. It covers the engineering decisions that affect SEO, why they matter technically, and how to implement the solutions without introducing technical debt. No marketing jargon, no vague recommendations. Code examples where they help, architectural reasoning everywhere else.

Rendering Architecture: The Decision That Echoes Through Everything

Google's crawler (Googlebot) has two phases: crawl and render. During the crawl phase, it fetches HTML. During the render phase, it executes JavaScript. These phases do not happen simultaneously. The render phase has a queue, and pages can sit in that queue for days or weeks.

This creates a simple rule: anything Google needs to see for ranking should be in the initial HTML response. If it requires JavaScript to appear, it enters the render queue. If the render queue is slow, Google indexes the JavaScript-less version of the page, which may be empty or missing critical content.

The rendering architecture decision, made once during framework selection, determines whether every page on the site starts in the crawl phase (good) or the render queue (risky). The JavaScript SEO guide covers the specific framework configurations, but the architectural principle is straightforward: server-render anything that needs to be indexed.

// Next.js App Router: server components are the default.
// This page renders complete HTML on the server. Correct.
// app/products/[id]/page.tsx

export default async function ProductPage({
  params,
}: {
  params: { id: string }
}) {
  const product = await db.products.findUnique({
    where: { id: params.id },
  })

  return (
    <main>
      <h1>{product.name}</h1>
      <p>{product.description}</p>
      <PriceDisplay price={product.price} />
      {/* Client components for interactivity are fine here.
          The critical text content is already in the HTML. */}
      <AddToCartButton productId={product.id} />
    </main>
  )
}

URL Design: Permanent Decisions That Are Expensive to Change

URLs are identifiers. Once Google indexes a URL and other sites link to it, changing that URL requires a redirect. Redirects work, but they lose a small amount of link equity, they add latency, and redirect chains (redirects pointing to other redirects) compound both problems. Getting URLs right the first time is cheaper than fixing them later.

Principles that hold across frameworks:

Use lowercase. Some servers treat /About and /about as the same page. Others treat them as different pages. Google treats them as different URLs. If both versions are accessible, Google may index both and split ranking signals between them. Force lowercase at the server or middleware level.

// Next.js middleware to enforce lowercase URLs
// middleware.ts
import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'

export function middleware(request: NextRequest) {
  const { pathname } = request.nextUrl
  if (pathname !== pathname.toLowerCase()) {
    const url = request.nextUrl.clone()
    url.pathname = pathname.toLowerCase()
    return NextResponse.redirect(url, 308)
  }
}

Use hyphens, not underscores. Google treats hyphens as word separators and underscores as word joiners. The URL /technical-seo is parsed as two words. The URL /technical_seo is parsed as one word. This directly affects keyword matching.

Avoid query parameters for content differentiation. Google can index URLs with query parameters, but it handles them inconsistently. If /products?category=shoes and /products?category=boots are distinct pages with distinct content, they should have distinct path-based URLs: /products/shoes and /products/boots. Query parameters should be reserved for filtering, sorting, and tracking that does not change the primary content.

Plan for internationalisation. If the application might need multiple languages, design the URL structure for it from the start. Subdirectory structures (/en/page, /fr/page) are the most common pattern and the easiest to implement with hreflang tags. Adding language support to an existing flat URL structure after launch requires redirecting every existing URL.

Canonical Tags: Solving Duplicate Content Programmatically

Many web applications generate duplicate content by design. Product pages accessible through multiple category URLs, paginated listings, filtered views, print-friendly versions, and staging or preview environments all create multiple URLs with identical or near-identical content.

The canonical tag tells Google which URL is the "original" version. Every page should have a canonical tag, even if it points to itself. This eliminates ambiguity about which URL Google should index.

// Next.js App Router: set canonical in metadata
// app/products/[slug]/page.tsx
import type { Metadata } from 'next'

export async function generateMetadata({
  params,
}: {
  params: { slug: string }
}): Promise<Metadata> {
  return {
    alternates: {
      canonical: `https://example.com/products/${params.slug}`,
    },
  }
}

Common mistakes with canonical tags:

  • Setting canonicals to relative URLs instead of absolute URLs. Google accepts relative canonicals but prefers absolute, and relative paths break if the page is served from an unexpected URL.
  • Pointing canonicals to pages that return 404 or redirect. The canonical target must be a live, indexable page.
  • Having conflicting canonical signals: the HTML canonical says one URL, the sitemap lists another, and the internal links point to a third. All three should agree.
  • Canonicalising paginated content to page one. If page two has unique content that should be indexed, it should canonical to itself, not to page one.

Structured Data: The Machine-Readable Layer

Structured data (schema markup) provides Google with explicit information about page content in a format it can parse without interpreting natural language. This is not optional for competitive queries. Sites with structured data get rich results (review stars, FAQ dropdowns, recipe cards, product prices in search results), and rich results have measurably higher click-through rates than plain blue links.

The implementation approach depends on the framework, but the principle is consistent: generate structured data server-side and include it in the HTML as a JSON-LD script tag.

// Reusable JSON-LD component for Next.js
// components/JsonLd.tsx

type JsonLdProps = {
  data: Record<string, unknown>
}

export function JsonLd({ data }: JsonLdProps) {
  return (
    <script
      type="application/ld+json"
      dangerouslySetInnerHTML={{
        __html: JSON.stringify(data),
      }}
    />
  )
}

// Usage in a product page
// app/products/[slug]/page.tsx
export default async function ProductPage({ params }) {
  const product = await getProduct(params.slug)

  const jsonLd = {
    '@context': 'https://schema.org',
    '@type': 'Product',
    name: product.name,
    description: product.description,
    image: product.imageUrl,
    offers: {
      '@type': 'Offer',
      price: product.price,
      priceCurrency: 'USD',
      availability: product.inStock
        ? 'https://schema.org/InStock'
        : 'https://schema.org/OutOfStock',
    },
  }

  return (
    <>
      <JsonLd data={jsonLd} />
      <main>
        <h1>{product.name}</h1>
        {/* rest of the page */}
      </main>
    </>
  )
}

Validate structured data with Google's Rich Results Test before deploying, and monitor the "Enhancements" section in Google Search Console for validation errors after deployment. The schema markup guide and the FAQ schema guide cover the full range of schema types and their implementation patterns.

Sitemaps: What to Include and What to Exclude

XML sitemaps tell Google which URLs exist and when they were last modified. For small sites (under 1,000 pages), sitemaps are a convenience. For large sites (over 10,000 pages), sitemaps are essential for ensuring Google discovers and re-crawls important pages.

What to include: every indexable page you want Google to find. What to exclude: pages blocked by robots.txt, pages with noindex tags, redirect URLs, error pages, and faceted navigation URLs that produce duplicate content.

A common engineering mistake is generating sitemaps that include every URL the application can produce, including paginated pages, filtered views, and URL variants. These bloated sitemaps dilute Google's crawl budget by directing the crawler to low-value URLs instead of important content.

// Next.js sitemap generation
// app/sitemap.ts
import type { MetadataRoute } from 'next'

export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
  const products = await db.products.findMany({
    where: { status: 'published' },
    select: { slug: true, updatedAt: true },
  })

  const posts = await db.posts.findMany({
    where: { status: 'published' },
    select: { slug: true, updatedAt: true },
  })

  return [
    { url: 'https://example.com', lastModified: new Date() },
    ...products.map(p => ({
      url: `https://example.com/products/${p.slug}`,
      lastModified: p.updatedAt,
    })),
    ...posts.map(p => ({
      url: `https://example.com/blog/${p.slug}`,
      lastModified: p.updatedAt,
    })),
  ]
}

For sites with more than 50,000 URLs, split sitemaps into multiple files and reference them from a sitemap index. Each individual sitemap file must contain fewer than 50,000 URLs and be smaller than 50 MB. The sitemap implementation guide covers the full specification and edge cases.

Robots.txt and Crawl Budget

Robots.txt controls which parts of the site crawlers can access. For most sites, the default configuration should allow everything except administrative paths, API endpoints, and internal tooling. The robots.txt guide covers the full syntax and common configurations.

Crawl budget is the number of pages Google will crawl on your site in a given period. For sites under 10,000 pages, crawl budget is rarely a constraint. For large sites, inefficient crawl budget usage means Google spends its budget on low-value pages and never reaches important ones.

Engineering decisions that waste crawl budget:

  • Infinite crawl traps: calendar widgets, faceted navigation, and sorting parameters that generate unlimited URL combinations.
  • Soft 404s: pages that return a 200 status code but display "no results found" or empty content. Google crawls these repeatedly because the 200 status says "this page exists and is fine."
  • Redirect chains: each hop in a chain consumes a crawl request. Three hops to reach the final page means four crawl requests for one piece of content.
  • Session IDs in URLs: appending session identifiers as query parameters creates a unique URL for every visitor session. Googlebot gets its own sessions, generating an infinite number of URLs to crawl.

Performance: What Googlebot Measures

Google uses Core Web Vitals as a ranking signal. The three metrics are Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS). Google measures these from real Chrome users through the Chrome User Experience Report (CrUX), not from lab tests.

This means PageSpeed Insights scores matter less than field data. A page can score 95 in the lab and fail in the field because real users on slow connections experience different performance than a datacenter test. Focus on the CrUX data in Search Console rather than lab scores.

Engineering priorities for Core Web Vitals:

  • LCP under 2.5 seconds. The largest visible element (usually a hero image or heading text) must render within 2.5 seconds. The most common fix: optimise image delivery (WebP/AVIF formats, correct sizing, CDN) and reduce server response time (caching, edge rendering).
  • INP under 200 milliseconds. User interactions (clicks, taps, key presses) must produce a visual response within 200 milliseconds. The most common fix: break up long JavaScript tasks, defer non-critical processing, and avoid blocking the main thread during rendering.
  • CLS below 0.1. Page elements must not shift position after they become visible. The most common fix: set explicit dimensions on images and embeds, reserve space for dynamically loaded content, and avoid injecting content above the fold after initial render.

The Core Web Vitals performance guide covers each metric in depth with framework-specific solutions.

Internal Linking: The Architecture Nobody Designs

Internal links distribute ranking authority across pages and signal to Google which pages are most important. Despite this, internal linking is rarely designed deliberately. It accumulates organically as content is published, creating an unstructured graph that may leave important pages poorly connected.

The engineering approach to internal linking: build it into the content management system rather than relying on authors to add links manually. If the CMS can suggest or automatically insert related links based on content similarity or taxonomy, the internal link graph maintains itself as the site grows.

Automated approaches that work:

  • Category and tag pages that aggregate content and provide links to individual pieces.
  • Breadcrumb navigation that creates hierarchical links from every page to its parent sections.
  • "Related content" sections generated from content similarity or shared taxonomy.
  • Contextual links inserted programmatically when specific terms or entities appear in the content.

The internal linking strategy guide covers the patterns in detail.

Handling Dynamic Content and SPAs

Single Page Applications (SPAs) that load content dynamically via API calls create SEO challenges because Googlebot must render the JavaScript to discover the content. Beyond the rendering delay, SPAs often fail to update the page title and meta tags during client-side navigation, meaning Google sees the same metadata on every page.

If the application must be a SPA for user experience reasons, use a framework that supports server-side rendering or static generation for the initial page load. React with Next.js, Vue with Nuxt, and Angular with Angular Universal all provide this capability. The initial HTML includes the content and metadata, and client-side navigation takes over after hydration.

For content loaded after the initial render (infinite scroll, tabbed content, accordions), consider whether that content needs to be indexed. If it does, it should have its own URL and be server-rendered at that URL. If it does not need to be indexed, loading it dynamically is fine.

Monitoring and Alerting

SEO issues introduced during development are cheapest to fix before deployment. Integrating SEO checks into the CI/CD pipeline catches problems before they reach production.

// Basic SEO smoke test for CI pipeline
// tests/seo-smoke.test.ts

import { test, expect } from '@playwright/test'

const CRITICAL_PAGES = [
  '/',
  '/products',
  '/blog',
  '/about',
]

for (const path of CRITICAL_PAGES) {
  test(`SEO checks for ${path}`, async ({ page }) => {
    await page.goto(`http://localhost:3000${path}`)

    // Title exists and is not empty
    const title = await page.title()
    expect(title.length).toBeGreaterThan(0)
    expect(title.length).toBeLessThan(70)

    // Meta description exists
    const desc = await page
      .locator('meta[name="description"]')
      .getAttribute('content')
    expect(desc).toBeTruthy()
    expect(desc!.length).toBeLessThan(160)

    // Canonical tag exists
    const canonical = await page
      .locator('link[rel="canonical"]')
      .getAttribute('href')
    expect(canonical).toBeTruthy()

    // H1 exists and is unique
    const h1s = await page.locator('h1').count()
    expect(h1s).toBe(1)

    // No broken images
    const images = page.locator('img')
    for (let i = 0; i < await images.count(); i++) {
      const src = await images.nth(i).getAttribute('src')
      expect(src).toBeTruthy()
    }
  })
}

Beyond CI checks, monitor Search Console for crawl errors, mobile usability issues, and Core Web Vitals regressions after each deployment. Setting up automated alerts for these metrics through the Search Console monitoring guide catches regressions before they affect traffic.

For AI engine visibility, NotioncCue's tracking dashboard shows how architectural decisions affect your content's presence in AI-generated answers. A site redesign that improves Google rankings but breaks structured data or removes schema markup can simultaneously reduce AI engine citations, and without tracking both channels you would miss the second effect entirely.

Share this post
Check your AEO score
Scan your domain free — get your AI visibility score across 5 LLMs in 30 seconds.
Scan my site →
SS
Sudhir Singh
Senior SEO & AEO Specialist · NotioncCue

Senior SEO and AEO specialist with 12+ years across e-commerce, global education, and healthcare. Building Notion Cue to track brand citations across ChatGPT, Perplexity, Gemini, and AI Overviews.

View all →
Get AEO updates weekly.

Citation shifts, algorithm changes, and what's actually working.