Sub topic 5
Technical Foundations Every Hub Needs
This chapter assumes you know the hub-and-spoke model from earlier chapters and understand what a URL, a web page and a browser are. You do not need to write code. The short examples are explained as they appear.
The website is the hub because every spoke (search, ads, social, email) sends people to it. If the hub is slow, broken on phones, insecure or hard to use, every spoke pays for it. Traffic you bought or earned is lost at the door. This chapter covers four foundations: speed, mobile support, security and accessibility. It also covers the basic signals that let search engines and analytics tools understand the site.
Why technical quality is a marketing issue
A visitor does not separate "marketing" from "the website". They click an ad and judge the whole experience. A technical fault has a direct cost:
- A slow page loses visitors before they see your value proposition.
- A page that is hard to use on a phone loses most social and email visitors, because those channels are used mostly on phones.
- A site with security warnings loses trust before the visitor reads a word.
- A page that some people cannot operate excludes them, and can create legal risk.
These foundations also feed search engine optimization (SEO), the practice of making pages easy for search engines to find and rank. The next chapter covers SEO in detail. Here the focus is on the base it relies on.
Speed
Page speed is how quickly a page loads and becomes usable. Slow pages raise the bounce rate, the share of visits that leave after viewing one page. Search engines also take speed into account.
Google describes page experience with Core Web Vitals, three measurements of real user experience:
| Metric | What it measures | Commonly cited "good" threshold |
|---|---|---|
| Largest Contentful Paint (LCP) | How long the main content takes to appear | 2.5 seconds or less |
| Interaction to Next Paint (INP) | How quickly the page responds when a user taps or clicks | 200 milliseconds or less |
| Cumulative Layout Shift (CLS) | How much the layout jumps around while loading | 0.1 or less |
Thresholds can change, so check Google's current documentation before you set targets.
The most common causes of slow pages in marketing sites are:
- Large images. A photo straight from a camera can be several megabytes. Resize it and use a modern format such as WebP.
- Too many third-party scripts. Each analytics tag, chat widget, ad pixel and heatmap tool adds download and run time. Marketing teams often add these over the years and never remove them.
- Cheap or overloaded hosting, which makes the server slow to respond.
- No caching or content delivery network (CDN). A CDN is a set of servers around the world that store copies of your files, so visitors download them from a nearby location.
To measure speed, use a tool such as PageSpeed Insights or Lighthouse. Lighthouse runs a simulated test ("lab data"). PageSpeed Insights also shows "field data", which comes from real Chrome users and reflects what visitors actually experience. When the two disagree, trust field data for decisions and use lab data to find causes.
Mobile support
Mobile-friendly means the page is readable and usable on a small touchscreen without zooming or sideways scrolling. Search engines mostly index the mobile version of a page (mobile-first indexing), so a weak mobile page can hurt rankings even for desktop searches.
The starting point is the viewport meta tag in the page's head section. It tells the phone browser to use the real screen width instead of pretending to be a wide desktop screen.
<head>
<title>Spring Sale | Example Shop</title>
<meta name="description" content="Save on garden tools and plants in our spring sale.">
<link rel="canonical" href="https://www.example.com/spring-sale">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>This head block holds four signals:
titleis the page title shown in browser tabs and as the headline of a search result.meta name="description"is the summary a search engine may show under the title.link rel="canonical"names the preferred URL for this content. If the same page is reachable at several addresses (for example with and without tracking parameters), the canonical link tells search engines which one to treat as the main version.meta name="viewport"makes the layout fit the device width.
The viewport tag alone does not make a site mobile-friendly. The layout must also adapt, which designers do with responsive design: CSS rules that rearrange the page depending on screen width. Check these points on a real phone:
- Text is readable without zooming (around 16 px for body text is a common baseline).
- Buttons and links are large enough to tap, and not packed close together.
- Forms use the right input types, so the phone shows a suitable keyboard. An
emailfield shows an email keyboard. - Pop-ups do not cover the whole screen and can be closed easily.
Security
Security here means two things for a marketing hub: protecting visitor data in transit, and keeping the site from being defaced or used to spread malware.
HTTPS
HTTPS is the secure version of the web protocol. It encrypts the connection between the visitor's browser and your server using a certificate. Without it, browsers label the site "Not secure", and anything typed into a form can be read by others on the network. HTTPS is also a small ranking signal, and many browser features require it.
Good practice:
- Install a certificate on every domain and subdomain you use. Free certificates are available from providers such as Let's Encrypt, and many hosts set this up automatically.
- Redirect all
http://addresses tohttps://with a permanent (301) redirect. - Fix "mixed content", where an HTTPS page loads an image or script over plain HTTP. Browsers may block it or show a warning.
- Renew certificates before they expire. An expired certificate shows visitors a full-page warning, and email and ad campaigns keep sending people to it.
Keeping the site safe
- Keep the content management system (CMS), themes and plugins updated. Outdated plugins are a common way sites are hacked.
- Use strong, unique passwords and two-factor authentication for every account that can edit the site or tag manager.
- Limit who can publish changes. A tag manager account can add any script to every page, so treat it like a key to the building.
- Keep backups and test that you can restore them.
A hacked site can be flagged by search engines or email providers. That cuts off your spokes at once.
Accessibility
Accessibility means people with disabilities can use the site. This includes people who are blind or have low vision, are deaf or hard of hearing, have motor impairments, or have cognitive differences. It also helps people in temporary situations, such as bright sunlight or a broken arm.
The common reference is the Web Content Accessibility Guidelines (WCAG), organized around four principles: content must be perceivable, operable, understandable and robust. Many organizations aim for WCAG level AA. Some countries and regions have laws or regulations that require it, so check what applies to you.
Practical checks for a marketing page:
- Text alternatives. Every meaningful image has
alttext that describes its purpose. Decorative images have empty alt text so screen readers skip them. - Contrast. Text must stand out from its background. WCAG AA asks for a contrast ratio of at least 4.5:1 for normal text. Light gray text on white often fails.
- Keyboard use. A visitor can reach every link, button and form field using the Tab key, and can see which element has focus.
- Form labels. Every field has a visible label connected to it in the code.
- Headings. Headings follow a logical order (one main heading, then subheadings) so screen reader users can navigate by them.
- Link text. Write "Download the pricing guide", not "Click here".
- Video. Provide captions, and a transcript where useful.
The form from the lead capture chapters shows several of these points in a few lines:
<form action="/subscribe" method="post">
<label for="email">Email address</label>
<input id="email" name="email" type="email" required>
<button type="submit">Get the free guide</button>
</form>The label is tied to the field through for="email" and id="email". A screen reader announces the label when the field is focused, and clicking the label also focuses the field. The type="email" setting brings up a suitable mobile keyboard and lets the browser check the format. The button text states the benefit.
Accessibility and SEO overlap. Alt text, clear headings and descriptive link text help screen readers and search engines alike.
Signals that help search engines and tools understand the hub
Beyond speed, mobile support and security, a few technical files and tags make the site easier for machines to read.
| Item | Purpose | Common error |
|---|---|---|
| XML sitemap | Lists the URLs you want search engines to find | Listing redirected or blocked pages |
| robots.txt | Tells crawlers which areas they should not crawl | Blocking the entire site by accident after a redesign |
| Canonical link | Names the preferred version of a page | Pointing every page's canonical at the home page |
| Structured data | Describes the content in a standard vocabulary | Marking up content that is not visible on the page |
| Clean 404 and redirect handling | Sends visitors from old URLs to the right place | Leaving broken links from old campaigns |
Structured data is code that describes a page in a standard vocabulary, schema.org, so machines can read it. The usual format is JSON-LD, placed in a script tag. This example describes the organization behind the site:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Shop",
"url": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
</script>Each line has a role. @context names the vocabulary. @type says what kind of thing is described. The remaining fields give its name, address and logo. Search engines may use this to understand who owns the site, but it does not guarantee any special display in results. Validate your markup with a testing tool, such as Google's Rich Results Test, after you add it.
Common errors and edge cases
- Staging site left indexable. A test copy of the site is found by search engines and competes with the real one. Block it with a password or a noindex instruction.
- Noindex left on after launch. A "noindex" setting used during development stays on and removes the live site from search results.
- Redirect chains. An old URL redirects to another redirect, then to the final page. Each hop slows the visitor. Point old URLs straight to the final address.
- Tracking parameters create duplicates. A link with UTM parameters, such as
?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale, shows the same content as the plain URL. A canonical link on the page keeps search engines from treating them as separate pages. Later chapters cover UTM tagging. - A cookie banner that blocks the page. A consent pop-up that covers content on mobile can ruin LCP and usability. Privacy and consent are covered in a later chapter.
- Fixing the desktop view only. Test on at least one iPhone-sized and one Android-sized screen.
- One-time audit. Technical health decays as people add plugins, images and scripts. Schedule a regular check, for example monthly or after every major release.
A simple technical health check
Use this list as a recurring routine:
- Run PageSpeed Insights on your home page and top three landing pages. Record LCP, INP and CLS.
- Open each page on a real phone. Tap every button and fill in every form.
- Confirm the address starts with
https://and no browser warning appears. Check the certificate expiry date. - Tab through the page with the keyboard only. Check contrast with a free contrast checker.
- Review the sitemap, robots.txt and the canonical link on key pages.
- Click through your latest campaign links and confirm they land on the right page without errors.
Exercise
A marketing team launches a spring campaign. Email click-through is high, but most visitors leave within seconds. PageSpeed Insights field data shows an LCP of 5 seconds on mobile, and the page loads six third-party scripts and a 4 MB hero image. Name two changes you would make first, and explain why they matter for the hub.
Show answer
First, compress and resize the hero image, and serve it in a modern format such as WebP. The large image is probably the largest element on the page, so it is the main cause of the high LCP. Second, remove or delay third-party scripts that nobody uses, or load them after the main content. Each script adds download and run time, and they compete with the main content for the phone's limited resources. Because email visitors are mostly on phones, these two changes recover traffic the campaign already paid for. Afterward, re-measure field data, which updates over a period of weeks, and lab data for faster feedback.
Exercise
After a redesign, a site's pages disappear from search results within days. Name two technical settings you would check first.
Show answer
Check for a "noindex" instruction left over from development, and check robots.txt for a rule that blocks crawlers from the whole site. Either one can remove the live pages from search results. Also worth checking are canonical links pointing to the wrong URL and redirects from old URLs that were never set up.