Rule: og-title
When og:title is absent, social platforms fall back to your HTML <title> tag. The problem: HTML titles often include brand suffixes like ' | Acme Corp' from Next.js title.template, wasting valuable space in social previews. An explicit og:title lets you craft a title optimized for social context — shorter, punchier, without the SEO template baggage.
What it checks
Indxel looks for a <meta property="og:title" content="..."> tag in the HTML head. The rule passes if the tag exists and the content is non-empty. Indxel does not compare og:title to the HTML title or check for quality — only presence.
Thresholds
og:title meta tag exists with non-empty content
og:title meta tag is missing or has empty content
Edge cases
In Next.js, setting openGraph.title in your metadata export generates the og:title tag. If you only set the top-level title without openGraph.title, the og:title tag may not be rendered (depends on Next.js version).
Some platforms (Twitter) have their own title tag (twitter:title). og:title and twitter:title can differ to optimize for each platform.
If og:title matches the HTML title exactly (including brand suffix), you get no benefit. The point is to have a different, social-optimized title.
Configuration
// indxel.config.ts
import { defineSEO } from "indxel";
export default defineSEO({
rules: {
"og-title": true, // enabled by default
},
});
// Set og:title in your metadata:
export const metadata = {
title: "Pricing Plans | Acme Corp", // HTML title (SEO)
openGraph: {
title: "Simple pricing. Start free.", // Social title (punchy)
},
};Frequently asked questions
Does og:title affect SEO rankings?
No. og:title is only used by social platforms and messaging apps. It has no impact on search rankings. The HTML <title> tag is what search engines read.
Should og:title be different from my HTML title?
Ideally, yes. HTML titles are optimized for search (keyword-first, brand suffix). og:title should be optimized for social (benefit-first, no suffix, more conversational). If they're identical, you miss an optimization opportunity.