Magento 2 Module to Improve Search Engine Optimization (SEO) on your Magento site.
Compatible with Magento 2.4.7 and 2.4.8 Compatible with Hyvä Theme
composer require staempfli/magento2-module-seo "^1.8"
php bin/magento module:enable Staempfli_Seo
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flushNavigate to: Stores > Configuration > SEO
- Enable Open Graph: Enable/Disable OG tags globally
- Site Name: Your brand name (used as og:site_name)
- Default Image: Fallback image (1200x630px recommended)
- Product Image: Which product image to use for OG
- Enable Twitter Cards: Enable/Disable Twitter Cards
- Card Type:
summary: Small square imagesummary_large_image: Large landscape image (recommended for most cases)
- Twitter Site: Your Twitter handle (e.g., @wilmadigital)
- Twitter Creator: Content creator Twitter handle
For CMS Pages, go to Content > Pages > [Your Page] > Open Graph
- OG Title: Override default title (optional)
- OG Description: Override meta description (optional)
- OG Image: Upload custom image for this page (1200x630px)
✅ Open Graph meta tags for Products, Categories, CMS Pages ✅ Twitter Card meta tags ✅ Per-page OG image control ✅ Admin configuration for defaults ✅ Hreflang tags for multi-language ✅ Search engine verification codes ✅ Hyvä Theme compatible (server-side rendering) ✅ Magento 2.4.7+ compatible
This module is 100% compatible with Hyvä Theme out of the box!
Why it works:
- Pure server-side PHP rendering
- No JavaScript dependencies
- No CSS/LESS files
- No RequireJS or Knockout.js
- Works with both Luma and Hyvä
https://search.google.com/test/rich-results
https://developers.facebook.com/tools/debug/
https://www.linkedin.com/post-inspector/
https://cards-dev.twitter.com/validator
- Size: 1200x630px (optimal for all platforms)
- Format: JPG or PNG
- File size: < 1MB recommended
- Content: Include logo, headline, brand elements
- Length: 60-70 characters optimal
- Format: "Page Title | Brand Name"
- Avoid: Keyword stuffing
- Length: 150-160 characters optimal
- Content: Clear value proposition
- CTA: Include call-to-action when relevant
- Clear LinkedIn cache using Post Inspector
- Ensure image is publicly accessible
- Check image dimensions (must be at least 200x200)
- Verify Twitter Site handle is correct (include @)
- Use Twitter Card Validator to debug
- Ensure card type is set correctly
Contributions are welcome! Please:
- Fork the repository
- Create feature branch
- Make your changes
- Submit Pull Request
Based on staempfli/magento2-module-seo
Updated and maintained by WilMa Digital GmbH
Open Software License ("OSL") v. 3.0
(c) 2017, Stämpfli AG
(c) 2025, WilMa Digital GmbH