Explore Courses

Understanding OG Tags: The Key to Better Social Media Previews

In today’s digital landscape, content sharing plays a crucial role in driving traffic and engagement. Whether it’s a blog post, a product page, or a news article, the way your content appears when shared on social media can significantly influence clicks. This is where OG tags, or Open Graph tags, come into play.

What Are OG Tags?

OG tags are pieces of metadata added to a webpage’s HTML code that control how content is displayed when shared on social media platforms like Facebook, LinkedIn, and Twitter (which also supports Open Graph along with its own Twitter Cards). They were originally introduced by Facebook through the Open Graph Protocol, allowing developers to define exactly what title, description, image, and other elements appear in a social media post preview.

Why Are OG Tags Important?

Without OG tags, social media platforms often pull random text or images from a webpage, leading to poor or misleading previews. Properly implemented OG tags ensure:

  • Consistent Branding – Your titles, images, and descriptions appear exactly as intended.
  • Higher Click-Through Rates (CTR) – Attractive previews grab user attention.
  • Improved User Experience – Viewers get a clear idea of what to expect before clicking.

Common OG Tags and Their Purpose

  • og:title – Sets the title of the shared content.
  • og:description – Defines the description shown in the preview.
  • og:image – Specifies the thumbnail image to be displayed.
  • og:url – Indicates the canonical URL of the content.
  • og:type – Tells platforms what kind of content it is (e.g., article, website, video).

Mrinal Mandal

Study Abroad Expert

Mrinal Mandal is a study abroad expert with a passion for guiding students towards their international education goals. He holds a degree in mechanical engineering, earned in 2018. Since 2021, Mrinal has been working with upGrad Abroad, where he assists aspiring students in realizing their dreams of studying abroad. With his expertise and dedication, he empowers individuals to navigate the complexities of international education, making their aspirations a reality.

See More

Refer Your Friend & Earn upto ₹40000

Help your friend upgrade to a Global Career and earn rewards together.

upGrad
Study Abroad Important Blogs