Optimising for Google

How should one optimise web page for Google? Should one optimise web pages for Google?

One probably should, partly because so many potential visitors will start by searching on Google, and partly because a lot of the steps for optimising for Google are just good practice anyway.

Some ways of impressing Google are nothing to do with content. It likes pages hosted on servers which are reliable, reasonably rapid, and which speak https. It likes servers to serve HTML compressed. It also likes pages which other sites link to (preferably other sites hosted on different servers), and where the linking text, or the text immediately around the link, is something relevant to that page.

But most is to do with content

HTML

HTML which is actually correct impresses more than that which contains errors. In Firefox, press {control}{U} to see the source, and (some) errors will be highlighted in red. But for a more generic, and thorough, technique, ask validator.w3.org to validate your HTML - it is a free service, afterall.

There are various tags in the <head> section of a page which one can set. The <title> tag sets the title which appears on the browser's tab for that page. It should be very short.

Of particular interest to Google is the tag

  <meta name="description" content="A summary of your page in about 150 characters" />

The summary should be a sentance or two, not simply a list of keywords. Google may choose to return it as the snippet of a page in search results. Its presence makes a page look more cared for, and it helps Google to understand what the page is about.

(Some will argue that meta tags should be closed by >, not />. If that is the biggest concern on your page, you are doing very well!)

If you do wish to list keywords, then the correct place is in

  <meta name="keywords" content="ignored, unnecessary, not used" />

Note that the above contains three keywords, not four, and "not used" will be considered to be a single word. The keywords are comma-separated, not space-separated. Some search engines do use keywords in the meta data, but Google does not. They are harmful only if stuffed with huge numbers of irrelevant words (as some people used to do).

Before one even reaches the head section, there is the html tag itself. Ideally this specifies the language, particularly if the language is not English.

<html lang="fr">

Asking Google to check

A rather obvious approach, but often overlooked. Google's main, free, online checker is PageSpeed Insights. Note that this has both "desktop" and "mobile" tabs in its reports.

Of course you can compare your results to other people's.

Google does like images to be kept small (in terms of bytes). More detail on images in web pages.

There is also Google's search console. This will tell you how Google is responding to search requests which return your site. It is free, and does not require you to place cookies, or anything else, on your page. It just requires you to prove that you own a particular site by placing a file with a name and contents that Google provides on the site. You do not need to "own" a whole site to use it. If you have write access to a directory, then you can claim anything under that directory.

The search console is useful. It will reveal, for instance, what pages Google is not indexing at all, and why. It will also reveal what search terms are causing your pages to be returned.

The Chromium/Chrome browser tends to send extra information back to Google. So if one has sufficient visitors using Chromium, then some extra information about page performance may be available.