Skip to content
Skillpedia
Social media75k · #2961

og-url-match

What it does

This skill checks that a page's og:url and canonical link point to exactly the same clean address. It is for site owners who want accurate share counts and consistent link previews.

When to use it

  • ✓When you ask the agent to check that social sharing and canonical tags agree on each page.
  • ✓When your share counts seem low and you suspect shares are being split across URL versions.
  • ✓When you change a page address and need to update both the canonical and social tags together.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-url-match/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-url-match/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you make sure the og:url and canonical tags on my pages match exactly?”

5 new skills a week. 1 minute to read.

How it works

The agent compares the og:url value with the canonical link on each page. Where they differ in protocol, domain, path, or query string, it sets og:url to match the canonical address and removes tracking parameters.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

OG URL Match

When og:url doesn't match the canonical URL, social platforms track share counts separately for each URL variant—published share counts get split across multiple URLs and appear lower than they actually are.

Quick Reference

  • og:url must exactly match the <link rel='canonical-url'> URL
  • Use absolute HTTPS URLs for both og:url and canonical-url
  • Mismatched URLs cause social platforms to aggregate share counts on the wrong URL
  • og:url should be the clean canonical URL without tracking parameters

Check

Compare the og:url meta tag value with the <link rel='canonical'> href value. Both must be identical absolute HTTPS URLs. Flag any page where they differ, either in protocol, domain, path, or query string.

Fix

Set og:url to exactly the same absolute HTTPS URL as the canonical tag. Remove any UTM parameters, session IDs, or tracking tokens from og:url. If no canonical tag exists, add one and set og:url to match it.

Explain

Social platforms use og:url as the canonical identifier for aggregating share counts and comments. If og:url differs from the canonical tag, shares on the page URL and shares of the og:url accumulate separately, making your content appear less popular than it is and creating attribution confusion.

Code Review

Compare the value of <meta property='og:url' content='...'> with the value of <link rel='canonical' href='...'>. They must be identical character-for-character. Check for: different protocols (http vs https), www vs non-www mismatch, query string differences, trailing slash inconsistencies. Flag any page where the two values differ.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/og-url-match

FAQ

Why do the two tags need to match?

Social platforms use og:url as the main identifier for share counts and comments, so differences split those totals.

Should tracking codes appear in these URLs?

No. The skill says to remove UTM and similar tracking parameters from og:url.

What if a page has no canonical tag?

The skill says to add one and set og:url to match it.

Details

Original description by the author

Use when auditing Open Graph tags or investigating why social share counts appear low. Applies to any page with both canonical-url and og:url tags.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2961
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills