Open Graph Meta Tags for Magento 2
- 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
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 set default OG images and descriptions that will be used if a product or page does not have an individual image or description assigned?
Does installing the module require modifying Magento core files or the store theme?
Does the module work with multiple stores/views (multi-store / multi-view) in Magento 2?
Can properly setting OG meta tags affect the number of clicks and engagement on social media?
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?
Does configuring the module require programming knowledge or code editing?
Do I receive technical support and updates after purchasing the module?
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-metaogAfter installing the package, run:
php bin/magento setup:upgradephp bin/magento cache:flush1. 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 :