本文へスキップ
Skillpedia
SNS75k · #2961

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-url-match/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2961
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル