Open Graph Meta Tags for Magento 2

The Meta OG module for Magento 2 lets you easily manage Open Graph data, making links to your store more attractive on social media and improving the visibility of your offer.
Compatibility
2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
Hyvä theme
Hyvä compatible
€15.38
per item
Email to a Friend

Enquire about this product

Description / Open Graph Meta Tags for Magento 2

MAGENTO 2 · OPEN GRAPH · SOCIAL MEDIA · SHARING

Take care of how links shared from your store are presented.

Kowal Meta OG

Set the title, description, and image for previews of products, categories, and CMS pages. Use page data and default values so your links communicate your brand clearly.

Products, categories, CMS · Default values · Luma and Hyvä

HOW IT WORKS IN PRACTICE

01 · You fill in the metadata
You choose the title, description, and image for the page.

02 · Magento generates the tags
Open Graph data is added to the HTML on the server side.

03 · The platform reads the link
It uses the metadata to build the preview.

What does your store gain?

Explore the module’s features, use cases, and settings.

Get to know the module

The Kowal_MetaOg module enables advanced management of Open Graph data in your Magento 2 store. It gives you control over the metadata used when presenting links to products, categories, and CMS pages on social media platforms such as Facebook, Messenger, Twitter (X), LinkedIn, and WhatsApp.

What is Open Graph?

Open Graph (OG) is a set of meta tags that tell social media platforms about the content of a given page. They let you define elements such as the title, description, content type, image, and even language so a shared link looks attractive and encourages clicks.

Why use OG in Magento?

  • Higher click-through rate (CTR): clear previews can encourage visits; results depend on the content and audience.
  • Better product presentation: automatically or manually define the description, title, and image for each page.
  • Social media visibility: Open Graph organizes the link preview. Its impact on clicks requires measurement; the module itself does not guarantee better search engine rankings.
  • Compatibility with popular platforms: works with Facebook, Twitter (X), LinkedIn, Slack, Discord, and others.

Supported page types

  • Product pages – automatically read the name, description, and image, or configure them individually.
  • Category pages – support for OG title and description, plus the option to use the category image as a banner or only as the OG image.
  • CMS pages – add an OG description and image without modifying template code.

Key module features

  • Manual editing of OG data: title, description, image
  • Fallback to global settings from the configuration panel
  • Integration with the Magento UI system in the admin panel
  • Secure validation and error handling
  • Compatibility with any Magento theme

Additional information

  • Module compatible with Magento 2.3.x – 2.4.x
  • Easy installation via Composer

Have questions?

Contact us through the contact form or email us at kontakt@kowal.co.

Metadata from page data and default settings

A product can have its own OG title, description, image, and type. If custom values are not provided, the module reads the product name, short description, and image. Categories use the category name, meta description, and category image; CMS pages use custom values or standard data.

In Stores → Configuration → Kowal → Meta OG, you set the default title, description, image, and site name. The code also emits the URL, content type, and locale. The category image can remain in the metadata even when the page banner is disabled.

Luma, Hyvä, and duplicate tags

The same module works with Luma and Hyvä without a separate adapter. Tags are generated in the HTML head on the server side; they do not require JavaScript or additional theme asset builds.

The module removes the standard product opengraph.general block to reduce OG conflicts; this also removes its standard price and currency metadata. Check other SEO modules and custom theme tags that may still create duplicates.

Link preview and marketing results

Open Graph provides metadata describing the page. How the preview is displayed and refreshed depends on the platform. The module itself does not publish posts, manage social media accounts, or guarantee an increase in CTR or Google rankings.

The meaning of the title, image, description, and locale properties is described in the Open Graph specification.

Installation via Composer

Package kowal/module-metaog, module Kowal_MetaOg. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store’s process.

From configuration to results

1. You fill in the metadata
You choose the title, description, and image for the page.

2. Magento generates the tags
Open Graph data is added to the HTML on the server side.

3. The platform reads the link
It uses the metadata to build the preview.

A preview tailored to your campaign

The product has a catalog name, but for sharing purposes you set a shorter OG title, a benefit-focused description, and a dedicated image.

If you do not add custom values, the module will use page data, and if that is missing, the default settings.

Organize link previews for your store

Want to adapt the module to your store? Ask about implementing Kowal Meta OG and discuss the configuration or required extensions.

More Information

Hyvä theme Hyvä compatible
Theme compatibility Hyvä, Luma / Blank, KOWAL

Questions and Answers

Can I add Open Graph tags to Magento products, categories and CMS pages?

Yes — the module allows you to set OG meta tags (e.g., og:title, og:description, og:image) and other social media tags for products, categories, and CMS pages, which makes store links shared on social media more appealing.

Can I set default OG images and descriptions that will be used if a product or page does not have an individual image or description assigned?

Yes — a good OG module allows you to set default values (fallbacks) for og:image or og:description tags, which will be used when the corresponding value is not available. Although not all details are provided publicly in the store description, this is a typical function

Does installing the module require modifying Magento core files or the store theme?

As a rule, no — the module works as an extension compatible with the Magento 2 architecture and should not require overwriting base system files. However, it is worth checking the module documentation to see whether there are any special requirements regarding the theme or integrations.

Does the module work with multiple stores/views (multi-store / multi-view) in Magento 2?

Yes — the OG extension should support multi-store environments, allowing you to set different OG tag values for different stores or languages. To be completely sure, it is worth checking the module’s compatibility with your specific installation.

Can properly setting OG meta tags affect the number of clicks and engagement on social media?

Yes — properly configured OG tags improve the appearance of a link preview on social media (e.g., Facebook, LinkedIn, Twitter) — a better-highlighted image, relevant title, and description can increase the click-through rate (CTR) and generate more traffic.

Does the module only add tags in the page header, or does it also support, for example, JSON-LD or other data structures for social media?

For this specific module, the description focuses on OG meta tags (“Better Visibility on Social Media”), so the main function is support for OG tags. If you need support for JSON-LD or other structures, it is worth checking the documentation to see if they are available.

Does configuring the module require programming knowledge or code editing?

No — installation and basic configuration are typically performed from the Magento 2 admin panel, without the need to write code or edit templates. This allows you to focus on marketing settings.

Do I receive technical support and updates after purchasing the module?

Yes — the manufacturer provides free updates and technical support for its modules.

Module Installation Instructions

Installation via Composer

You will receive Composer repository access credentials, including the customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.

composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-metaog

After installing the package, run:

php bin/magento setup:upgradephp bin/magento cache:flush

1. Global configuration (system.xml)

Go to Stores > Configuration > KOWAL > Meta OG:

  • Default title (og:title)

  • Default description (og:description)

  • Default image (og:image) 

  • Site name (og:site_name)

  • Disable category image display (show_category_image)

2. Products

When editing a product, 3 new fields are available:

  • Meta OG Title

  • Meta OG Description

  • The OG image is automatically loaded from the product gallery

3. Categories

When editing a category, the following are available:

  • Meta OG Title

  • Meta OG Description

    The OG image is automatically loaded from the category Image field.

If you want to disable displaying it as a banner on the frontend, disable the option 'Display category image (as banner)' in the module settings.

4. CMS Page

When editing a CMS page, such as terms and conditions:

  • Meta OG Title

  • Meta OG Description

  • Meta OG Image (from the WYSIWYG folder)

5. Display in the source code

After opening a product, category, or CMS page, open DevTools and check :

Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Open Graph Meta Tags for Magento 2
Your Rating:
Quality
Price
Support
loader
Loading...

You submitted your review for moderation.

Update cookie preferences