/ โ† Learning Hub / Meta Tag Fixes
On this page
  1. What lives in the head, and who reads it
  2. The fix guides, grouped by job
  3. Which findings to fix first
  4. Fix the template, not the page
  5. Tags that contradict each other
  6. A sensible order of work
  7. Questions and answers

The fix guides, grouped by job

Each guide covers one finding in full: what the analyzer flagged, why it matters, the correct markup, how to change it on common platforms and how to confirm the fix.

Tags that decide how search engines treat the page

Fixing title length and uniqueness covers writing one distinct title per page, putting the words people search for near the start, and deciding when a brand suffix earns its space. Fixing meta description quality covers descriptions that summarise the page honestly, mention what the searcher is looking for and are not copied from page to page. Fixing missing or broken canonicals covers the self-referencing canonical and the common mistakes: http instead of https, inner pages pointing at the home page, and slash or parameter mismatches. Fixing robots meta directives covers accidental noindex, the preview directives such as max-image-preview:large, and when noimageindex does more harm than good.

Tags that shape shared links

Fixing Open Graph tag completeness covers the core set of og: tags, plus og:site_name and og:locale, and an image that works on the main platforms. Fixing X (Twitter) card markup covers the twitter:card types and when explicit twitter: tags are worth adding on top of Open Graph.

Tags that affect every visitor

Fixing a missing viewport tag covers the one-line tag that makes a responsive layout work on phones, and why blocking zoom is an accessibility problem. Fixing a missing or wrong lang attribute covers choosing between en, en-GB and en-US, marking up passages in other languages, and how lang differs from hreflang.

Where to change the tags on your platform

Most meta tag problems are made by a template, a theme or a plugin, so the fix happens there too. Meta tags in WordPress covers Yoast, Rank Math and SEOPress, which setting wins when the post and the site disagree, and bulk editing. Meta tags in Shopify covers the head of theme.liquid, product and collection overrides, and apps that print duplicate tags. Meta tags in Next.js covers the Metadata API, generateMetadata for dynamic routes, generated share images and why tags must be in the server-rendered HTML.

Which findings to fix first

The analyzer reports everything it finds, but the findings are not equal. Some stop a page appearing in search at all; others only make a result or a shared link a little less appealing. Work from the top of this list down.

  1. An unintended noindex. A page carrying noindex will drop out of Google once it is recrawled, however good it is. It is often copied across from a staging site or switched on by a plugin setting, and it can affect a whole site at once.
  2. A canonical pointing somewhere else. If every product page names the home page as its canonical, search engines may treat the products as duplicates. A canonical is a hint rather than a command, but a wrong one is a strong hint in the wrong direction.
  3. A missing viewport tag. Without it, phones lay the page out at a desktop width and shrink it, and Google indexes the mobile version of pages, so the mobile experience is the one that counts.
  4. Duplicate or empty titles. Pages with identical titles are hard to tell apart in results and in browser tabs, and they make it harder for search engines to see what each page is for.
  5. Missing or duplicate descriptions. Google writes its own snippet when there is no useful description, which is not always a disaster, but a repeated sentence across hundreds of pages wastes the one chance you have to suggest the text.
  6. Incomplete Open Graph and X card tags. These do not affect search, but every link shared without an image or proper title looks broken.
  7. A missing or wrong lang. Quick to fix, and it matters to screen reader users, who may hear English read with the wrong pronunciation rules.
โš ๏ธ Before removing a noindex or changing canonicals across a site, check the tag was not put there on purpose. Thank-you pages, internal search results, filtered listings and print versions are often excluded deliberately.

Fix the template, not the page

Meta tag problems usually repeat. A site with 400 pages rarely has 400 separate problems; it has three or four template rules producing the same fault on every page that uses them. The quickest route through an analyzer report is to group findings by page type, such as blog posts, products, categories and service pages, and fix the rule that writes the tag for each type.

Where the tags come from

When two of these layers both print tags, you get two titles, two descriptions or two canonicals, and the reader picks one unpredictably. The analyzer flags duplicates, and the fix is to switch one layer off rather than to edit both.

Check what the server sends

Browser developer tools show the page after scripts have run, which can hide problems. To see exactly what a crawler receives, use View Source, or request the page from the command line:

curl -s https://example.com/services/ | grep -iE "<title|name=\"description|rel=\"canonical|name=\"robots|name=\"viewport"

If a tag appears in the developer tools but not in that output, it is being added by JavaScript, and it should be moved into the server-rendered HTML.

๐Ÿ’ก Robots rules can also arrive in an X-Robots-Tag HTTP header, which never appears in the HTML. If a page will not index and the head looks clean, check the response headers with curl -I.

Tags that contradict each other

Some of the most confusing findings come from tags that are each valid on their own but disagree with each other. Search engines then have to guess which signal you meant, and they do not always guess the way you would like.

ConflictWhat happensHow to resolve it
noindex plus a canonical pointing to another pageTwo opposite messages: drop this page, and treat that one as the main version. Google has advised against combining them.Decide which you mean. For duplicates, use the canonical alone; for pages that should not appear, use noindex alone.
Canonical and og:url name different addressesSearch engines credit one address while shares are counted against another.Generate both from the same value in the template.
Robots meta says one thing, X-Robots-Tag says anotherThe most restrictive rule is generally the one applied.Set robots rules in one place only.
Canonical points to a page that redirects or returns an errorThe hint points nowhere useful, so it is likely to be ignored.Point the canonical at the final, working address.
lang="en-US" on content written for the UKScreen readers and translation tools apply the wrong locale.Use en-GB, or plain en if you do not target a region.
Two <title> elementsBrowsers use the first; other readers may not.Remove the duplicate at its source, usually the theme or a second plugin.

Canonical choices also interact with hreflang on multi-language sites, where each language version should name itself as canonical. That topic has its own hub: Hreflang fixes.

A sensible order of work

  1. Run the Meta Tag Analyzer on one page of each type: the home page, a service or category page, a product or article, and a contact page.
  2. Sort the findings by page type and look for the ones that repeat. Those point to a template rule.
  3. Deal with anything that blocks indexing first: stray noindex tags, wrong canonicals and missing viewport tags.
  4. Remove duplicate tags by switching off one of the layers that prints them, then set sensible site-wide patterns for titles and descriptions.
  5. Rewrite titles and descriptions by hand for the pages that matter most, such as the home page, top services and best-selling products.
  6. Complete the sharing tags and set lang correctly in the layout.
  7. Run the analyzer again on the same pages, then on a wider sample, to confirm the template changes worked everywhere.

This hub is about the head as a whole. Two neighbouring hubs go deeper on one part each: SERP preview fixes looks at how the finished result appears in Google, and Open Graph fixes looks at building and validating the sharing tags. For the full reference, read the Meta Analyzer Guide or open the example report.

Questions and answers

1. Do meta tags still matter for SEO?

Some matter a great deal and some not at all. The robots tag and canonical decide whether a page can be indexed and which address receives the credit, so errors there can remove pages from search. The title is usually the source of the headline in results. The description can shape the snippet. The meta keywords tag is ignored by Google. So meta tags rarely lift rankings on their own, but mistakes in them can cost you visibility and clicks.

2. How long should a title tag be?

There is no fixed limit in the HTML standard, and Google does not cut titles at a set number of characters. It shortens them to fit the width available, which depends on the device and on the letters used. Around 50 to 60 characters usually fits without being cut on desktop. More important than the exact count is that each title is unique, describes the page accurately and puts the most useful words first, so a shortened version still makes sense.

3. Why does Google show a different description from the one I wrote?

Google treats the meta description as a suggestion. It often builds the snippet from text on the page that matches the particular search more closely, so one page can show different snippets for different searches. Your description is more likely to be used when it accurately summarises the page, mentions what people are searching for and is not repeated on other pages. A missing or generic description almost guarantees that Google writes its own.

4. What is a canonical tag and does every page need one?

A canonical tag is a line in the head that names the preferred address for a page. It helps search engines choose between near-identical versions, such as the same page with and without tracking parameters, or with and without a trailing slash. It is good practice for every indexable page to carry a canonical that points to its own clean address. It is a strong hint rather than an instruction, so search engines can choose a different canonical if other signals disagree.

5. How do I find out if a page has an accidental noindex?

Run the page through the Meta Tag Analyzer, or open View Source and search for noindex. Also check the HTTP response headers, because a noindex can be sent in an X-Robots-Tag header that never appears in the HTML. In Google Search Console, the URL Inspection tool reports whether indexing is allowed, and the Pages report lists addresses excluded by a noindex tag. On WordPress, check that the setting that discourages search engines from indexing the site is switched off.

6. Should I use en-GB or en in the lang attribute?

Use en-GB if your content is written in British English for a UK audience, and plain en if it is written for English speakers generally. Both are valid. The value helps screen readers choose pronunciation and helps browsers with spelling checks, hyphenation and translation offers. It does not tell Google which country to show the page in; for sites with separate versions for different countries or languages, that job belongs to hreflang annotations, which are a separate set of tags.

7. Why do I have two title tags on my page?

Usually because two parts of the site are both printing one. A theme may write a title into the head, and an SEO plugin or app writes another, or a page builder adds its own. Browsers use the first title they find, but other readers may take the second, so the results are unpredictable. Find which layer should be in charge, normally the SEO plugin, and turn off title output in the other one rather than editing both copies.

Check your meta tags now

The Meta Tag Analyzer reads the head of your page and checks the title, description, canonical, robots directives, viewport, Open Graph and X card tags, then lists each finding with the guide that fixes it.

Run the Meta Tag Analyzer โ†’
๐Ÿ’ฌ Got a problem?
Related Guides: Meta Analyzer Guide  ·  Example Report  ·  OG Generator Guide  ·  SERP Preview Guide  ·  Learning Hub

About aiwebpageseo

aiwebpageseo.com is a data-driven SEO and AEO (Answer Engine Optimisation) platform providing a free suite of technical SEO tools. Rather than relying on AI-theorised assumptions, the platform analyses live URL performance, delivering objective diagnostics, page speed metrics, CLS debugging, and site crawl data alongside actionable technical tutorials.