Skip to Content

No og:site_name tag

What Is This Issue

The og:site_name meta tag specifies the name of your website or application. This appears in social media previews alongside the page title, helping users identify the source of the shared content.

This issue checks whether your page has the og:site_name tag implemented. A passing implementation must include:

  • og:site_name - The name of your website or brand

Example of passing implementation:

<meta property="og:site_name" content="Example Company" />

Why Is This Important

The og:site_name tag is valuable for brand recognition and social media sharing:

  • Brand visibility: Displays your brand name prominently in social previews
  • Source identification: Helps users quickly identify the source of shared content
  • Trust signals: Establishes credibility by showing the content originates from a known brand
  • Consistency: Maintains consistent branding across all social shares
  • AI Search / AEO: AI systems use site name to understand content attribution

Without the og:site_name tag, social media previews will only show:

  • The page title without brand context
  • Users may not recognize the source of the content
  • Reduced brand visibility in social feeds

Resolving this issue improves brand presence in social sharing and contributes to a higher overall SEO health score by strengthening brand signals.

How XeoPix Detects This

XeoPix checks for the og:site_name tag by:

  1. Fetching the page HTML after following all redirects
  2. Parsing the <head> section to extract the meta tag with property="og:site_name"
  3. Validating presence: Checks that the og:site_name tag exists
  4. Validating content: Ensures the tag has a non-empty value
  5. Flagging the issue if the tag is missing or empty

The detection is performed on the raw HTML response without JavaScript execution, matching how social media crawlers see your pages.

How To Fix

  1. Add the og:site_name tag to your HTML <head> section:

    • Use your official website or company name
    • Keep it concise (under 50 characters recommended)
    • Be consistent across all pages of your site
  2. Choose the right name:

    • Use the name users would recognize
    • Match your logo text or official brand name
    • Avoid adding taglines or descriptions (use og:description for that)
  3. Test your implementation:

    • Use Facebook Sharing Debugger to verify site name appears
    • Share your URL on social platforms and check the preview
    • Ensure site name displays correctly across different platforms

What We Store

Storage Level

Page Level


Database Table / Prisma Model

SocialOpenGraphData


Stored Fields

FieldTypeDescription
ogSiteNameString?Open Graph site name (og:site_name)

Detection Dependencies

  • HTML Document
  • Meta Tags (og:site_name)

Examples

Example 1: Missing OG Site Name

Problematic state (what fails):

<meta property="og:title" content="My Awesome Product" /> <!-- Missing og:site_name tag -->

Corrected state (what passes):

<meta property="og:site_name" content="Example Company" /> <meta property="og:title" content="My Awesome Product" />

Example 2: Inconsistent Site Name

Problematic state (what fails):

<!-- Page 1 --> <meta property="og:site_name" content="Example Co." /> <!-- Page 2 --> <meta property="og:site_name" content="Example Company Inc." /> <!-- Inconsistent naming across pages -->

Corrected state (what passes):

<!-- All pages use consistent name --> <meta property="og:site_name" content="Example Company" />

Example 3: Site Name with Tagline

Problematic state (what fails):

<meta property="og:site_name" content="Example Company - The best SEO tools for your website" /> <!-- Too long, includes tagline -->

Corrected state (what passes):

<meta property="og:site_name" content="Example Company" /> <meta property="og:description" content="The best SEO tools for your website" /> <!-- Site name is concise, description separate -->

Unit Test

Test File

xeopix-crawling-v2/__tests__/seo-audit-checks/socialOpenGraph/issue-121-og-site-name.test.js

Purpose

Validates that the crawler detects pages missing the og:site_name Open Graph meta tag.

Tested Function

runSocialOpenGraph()

Issue Information

  • Issue Number: 121
  • Issue Code: og_site_name
  • Toggle Group: socialOpenGraph

Test Scenarios

Positive Test Cases

  • og:site_name is present (e.g., "Example Site") → no issue detected.

Negative Test Cases

  • og:site_name is missing from the page → issue detected with message "Open Graph site name tag is missing".

Boundary Cases

No boundary cases exist in the test.

Edge Cases

  • Empty HTML: The function handles an empty string without throwing.

Expected Outcome

Pass

The issue should not be reported when the og:site_name meta tag is present in the page HTML.

Fail

The issue should be reported when the og:site_name meta tag is missing.

Validation

  • Correctly detects the absence of the og:site_name tag.
  • Does not report a false positive when og:site_name is present.
  • Handles empty HTML gracefully without crashing.
  • xeopix-crawling-v2/toggleGroups/socialOpenGraph.js
  • xeopix-crawling-v2/issueCodes.js

Coverage Summary

  • Covers present and missing og:site_name scenarios.
  • Includes resilience test for empty input.

References

Last updated on