Warning Open Graph

Missing og:url — Canonical URL for Social Sharing

The og:url tag defines the canonical URL for the shared page.

What is og:url?

The og:url meta tag specifies the canonical URL for your page in the context of social sharing. It tells platforms "this is the definitive URL for this content," even if the page can be accessed through multiple URLs.

Why is it important?

Consolidates social signals

When the same content is accessible via different URLs (e.g., with/without www, query parameters, tracking tags), og:url ensures all likes, shares, and comments are attributed to a single URL.

Without it:

  • https://example.com/post?utm_source=twitter
  • https://example.com/post?ref=newsletter
  • https://example.com/post

These would be treated as three different pages with separate share counts.

Prevents duplicate content

Social platforms use og:url to deduplicate content. When multiple URLs point to the same content, the og:url tells platforms which one to use as the primary reference.

Clean sharing

When users copy the shared link, platforms use og:url instead of the current URL, giving a clean link without tracking parameters.

How to fix it

<meta property="og:url" content="https://yoursite.com/your-page" />

Best practices

  1. Use the canonical URL — Match your <link rel="canonical"> tag
  2. Always use HTTPS — Prefer the HTTPS version of your URL
  3. Exclude query parameters — Use the clean URL without UTM or tracking params
  4. Include the protocol — Always start with https://
  5. Be consistent — Choose either www or non-www and stick with it

Common mistakes

<!-- Bad: Relative URL -->
<meta property="og:url" content="/my-page" />

<!-- Bad: Includes tracking params -->
<meta property="og:url" content="https://example.com/page?utm_source=facebook" />

<!-- Bad: HTTP instead of HTTPS -->
<meta property="og:url" content="http://example.com/page" />

<!-- Good: Clean absolute HTTPS URL -->
<meta property="og:url" content="https://example.com/page" />

Related articles