Skip to content

On-Page SEO Meta Tags: Which Ones Matter and How to Set Them

By Needle TeamPublished Updated 5 min read

Share
Summarize with AI
On this page

Short answer: the on-page SEO meta tags worth your time are the title tag, meta description, canonical link, robots meta tag, viewport tag, hreflang (only if you have translated pages) and the Open Graph and Twitter tags that control link previews. Everything else in the <head> is either technical plumbing or ignored by Google.

Meta tags don't decide rankings on their own. They decide how a page is indexed and how it looks in results and in shares, and that affects whether anyone clicks.

The tags at a glance

Tag What it does Affects ranking? Must have?
<title> Headline in search results and the browser tab Yes, it's a relevance signal Yes, on every page
meta name="description" Suggested snippet under the title No, but affects clicks Yes, on important pages
link rel="canonical" Names the preferred URL among duplicates Indirectly, consolidates signals Yes
meta name="robots" Controls indexing and snippets Can remove a page from results Only when you need to restrict
meta name="viewport" Makes the page render properly on mobile Indirectly, via mobile usability Yes
link rel="alternate" hreflang Points to language or region versions No, it picks the right version Only for multilingual sites
Open Graph (og:*) Link previews on LinkedIn, Slack, Facebook and others No Yes, for any page you share
Twitter (twitter:*) Link previews on X No twitter:card at minimum

1. Title tag

The title is the single most important on-page tag. Google usually shows it as the clickable headline, and it tells both Google and the searcher what the page is about.

<title>Free UTM Link Generator for GA4 | BrandName</title>
  • Lead with the main topic. Put the words people search for first. "Free UTM Link Generator" beats "BrandName - Tools - UTM".
  • Keep it roughly 50-60 characters. Google truncates by pixel width, not by character count, so this is guidance. Wide letters run out sooner.
  • Make every title unique. Duplicate titles across pages make it harder for Google to tell them apart, and it's more likely to rewrite them.
  • Match the page. If the title promises something the page doesn't deliver, Google may replace it with text from your headings.

2. Meta description

The description is your pitch in the results. It is not a ranking factor, and Google often swaps it for a passage from the page that better matches the query. A clear one still gets used often, especially for short, head-term searches.

<meta name="description" content="Build UTM-tagged links for GA4 in seconds. Free, no sign-up, with presets for newsletters, social and paid campaigns." />
  • Aim for about 120-160 characters. Again, this is guidance, not a hard cutoff.
  • Answer the search, then give a reason to click. Say what the page does and what makes it useful.
  • Write one per important page. Skip it on pages you don't care about, and Google will build a snippet itself.

A canonical tells search engines which URL is the main version when the same content is reachable at several addresses: with and without a trailing slash, with tracking parameters, through http:// and https://, and so on.

<link rel="canonical" href="https://example.com/blog/meta-tags-guide" />
  • Use absolute URLs with the protocol and domain.
  • Point each page at itself unless it really is a duplicate of another page.
  • Don't point canonicals at redirects, 404s or noindexed pages. That sends mixed signals.
  • Treat it as a hint. Google can choose a different canonical if your internal links, sitemap and redirects disagree with the tag.

4. Robots meta tag

The robots meta tag controls whether a page can be indexed and how it can appear.

<meta name="robots" content="noindex, follow" />
  • Leave it off public pages. The default is index, follow.
  • Use noindex on thin or private pages: internal search results, thank-you pages, staging copies.
  • Don't block the same page in robots.txt. If robots.txt stops Googlebot from crawling a page, it never sees the noindex.
  • Snippet controls exist too. max-snippet, max-image-preview and nosnippet limit what Google can show.

The most common costly mistake on launch day is a noindex copied from a staging site.

5. Viewport

<meta name="viewport" content="width=device-width, initial-scale=1" />

Without it, mobile browsers render the page at desktop width and shrink it. Google indexes the mobile version of your site, so this matters even though it isn't a ranking tag in itself. Most frameworks add it by default. Check that yours does.

6. hreflang (multilingual sites only)

If you publish the same page in several languages or for several regions, hreflang tells Google which version to show to whom.

<link rel="alternate" hreflang="en" href="https://example.com/pricing" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  • Tags must be reciprocal. Each version lists all the others, including itself.
  • Use valid language codes (en, fr, pt-BR), not country names.
  • Skip it entirely if you only have one language. A broken hreflang set is worse than none.

7. Open Graph and Twitter tags

These don't affect Google rankings, but they control what people see when your link is shared in Slack, LinkedIn, X, Discord or iMessage. A shared link with no image or the wrong title gets far fewer clicks.

<meta property="og:title" content="Free UTM Link Generator for GA4" />
<meta property="og:description" content="Build UTM-tagged links in seconds." />
<meta property="og:image" content="https://example.com/og/utm.png" />
<meta property="og:url" content="https://example.com/tools/utm-builder" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
  • Use an absolute image URL that is publicly reachable without cookies.
  • Use a wide image. 1200 x 630 pixels is the common size for large previews.
  • Add twitter:card. X falls back to Open Graph for the title, description and image, but it needs twitter:card to know which layout to use.

Our Open Graph image and social preview guide goes deeper on images and caching.

Tags you can skip

  • meta name="keywords": ignored by Google for ranking.
  • meta name="revisit-after": never had an effect in Google.
  • meta name="author", generator and similar: harmless, no SEO effect.

Common on-page SEO tag mistakes

  1. The same title on every page, often the site name alone, left over from a template.
  2. A noindex left over from staging, which silently removes pages from Google.
  3. Canonicals pointing to the homepage from every page, which tells Google your other pages are duplicates.
  4. Keyword-stuffed titles like "CRM, Best CRM, Free CRM, CRM Software". These look spammy and are prone to rewriting.
  5. Relative or missing og:image URLs, so shares show no preview.
  6. Tags added by JavaScript only. Some crawlers and most link-preview bots read the raw HTML. Render important tags on the server.
  7. Titles that don't match the page. If the title says "pricing" and the page is a feature tour, expect Google to rewrite it.

How to check your meta tags

Manually: open the page, view the source (Ctrl+U or Cmd+Option+U) and search for <title, name="description", rel="canonical", name="robots" and og:. Check the raw source rather than the inspector, because the inspector shows tags added later by JavaScript.

With a tool:

  • Meta Tags Checker reports the title, meta description and their lengths, the canonical, the core Open Graph tags and twitter:card for any URL. It's free and needs no sign-up.
  • OG Share Image Checker shows how a link preview will look and whether the image loads.
  • For indexing problems such as a page blocked by robots.txt or missing from your sitemap, use the Google Indexing Checker.

A quick checklist before launch

  • Every public page has a unique, descriptive <title>
  • Important pages have a meta description written for people
  • Every page has a self-referencing, absolute canonical
  • No noindex on pages that should rank
  • Viewport tag is present
  • og:title, og:description, og:image and twitter:card are set on shareable pages
  • hreflang is either complete and reciprocal or absent

Frequently asked questions

Which meta tags matter most for on-page SEO?

The title tag and the robots meta tag have the most direct effect on search. The title is what Google most often shows as the clickable headline, and a stray noindex can remove a page entirely. After those, the canonical link, meta description and viewport tag matter, plus Open Graph and Twitter tags for how links look when shared.

Does Google still use the meta keywords tag?

No. Google has ignored the meta keywords tag for web ranking for many years. It does no harm, but it does nothing useful either, and it shows competitors which terms you are targeting.

Why does Google show a different title or description from mine?

Google treats both as suggestions. If your title is very long, stuffed with keywords, duplicated across pages or doesn't match the page, Google may build its own title from headings or other text. Descriptions are often replaced with a passage that better matches the specific query.

How long should a title tag and meta description be?

Google truncates by pixel width rather than a fixed character count, so treat these as rough guidance: about 50-60 characters for titles and about 120-160 characters for descriptions. Put the most important words first so they survive truncation.

How do I check a page's meta tags?

View the page source and search for the title and meta tags, or paste the URL into a meta tags checker. Needle's free Meta Tags Checker reports the title, description, lengths, canonical, Open Graph and twitter:card tags in one pass.

More articles, guides, tools, and comparisons for this topic.

Free tool

Free OG & Twitter Share Image Checker

Verify Open Graph and Twitter Card images for reachability, dimensions, and preview readiness so shared links render correctly across social platforms.