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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2961
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.