og-url-match
できること
このスキルは、ページのog:urlとcanonicalリンクが、まったく同じ整ったアドレスを指しているかを確認します。正確な共有数と一貫したリンクプレビューを求めるサイト運営者向けです。
使う場面
- ✓ソーシャル共有のタグとcanonicalタグが各ページで一致しているか確認するようエージェントに頼むとき。
- ✓共有数が少なく、URLの複数のバージョンに分散していると疑うとき。
- ✓ページのアドレスを変更し、canonicalとソーシャルのタグを同時に更新する必要があるとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-url-match/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のページのog:urlとcanonicalタグが完全に一致しているか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、各ページのog:urlの値とcanonicalリンクを比べます。プロトコル、ドメイン、パス、クエリ文字列が異なる場合は、og:urlをcanonicalのアドレスに合わせ、トラッキング用のパラメーターを取り除きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
2つのタグはなぜ一致させる必要がありますか?
SNSは共有数やコメントの識別にog:urlを主に使うため、違いがあると合計が分かれてしまうからです。
これらのURLにトラッキング用のコードを入れるべきですか?
いいえ。このスキルは、og:urlからUTMなどのトラッキング用パラメーターを取り除くよう勧めています。
ページにcanonicalタグがない場合はどうしますか?
このスキルは、canonicalタグを追加し、og:urlをそれに一致させるよう勧めています。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 75k
- ランキング
- #2961
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
xurl
394k認証済みのxurlツールを使い、Xに投稿、返信、検索、閲覧し、ダイレクトメッセージを送り、メディアをアップロードするようエージェントを支援します。
connections-optimizer
280kソーシャルネットワークのつながりを改善します。フォローやフォロー解除の候補を提案し、パーソナライズされたメッセージの作成を支援して、ネットワークを広げます。
content-engine
280kさまざまなプラットフォーム向けのコンテンツを作成します。X、LinkedIn、YouTubeなどのネットワークで効果的な投稿、台本、コンテンツカレンダーの作成を支援します。