mage2kishan/module-advanced-seo
Composer 安装命令:
composer require mage2kishan/module-advanced-seo
包简介
Panth Advanced SEO — enterprise-grade SEO suite for Magento 2: SEO dashboard, meta templates, SEO rules engine, bulk meta editor, custom canonicals, filter URL rewrites, filter page meta, hreflang, product feeds, missing meta report, SEO audit & crawl results, structured data (JSON-LD), breadcrumbs,
关键字:
README 文档
README
Magento 2 Advanced SEO Extension: Meta Templates, Canonicals, SEO Rules, Google Feed, GA4, Structured Data (Hyva + Luma)
One integrated SEO suite for Magento 2. Panth Advanced SEO handles meta templates with token variables, a condition-based SEO rules engine, bulk meta editing, custom canonical URLs, SEO scoring and crawl audit, a Google Merchant feed, GA4 enhanced ecommerce, hreflang management, and URL key automation. Native support for both Hyva (Alpine.js) and Luma.
Product page: kishansavaliya.com/magento-2-advanced-seo.html
Quick Answer
What is Panth Advanced SEO? It is a Magento 2 SEO extension that covers meta templates, canonical URLs, SEO rules, bulk meta editing, SEO scoring and crawl audit, a Google Merchant feed, GA4 integration, and hreflang management in a single module. No need to install five different SEO extensions from separate vendors.
What does it add to my store?
- Meta templates with token variables like
{name},{sku},{price}, and{attribute:X}applied to products, categories, and CMS pages automatically. - A condition-based SEO rules engine that applies templates, sets canonicals, or marks pages noindex when your conditions match.
- A bulk meta editor so you can review and fix hundreds of meta titles and descriptions in one grid.
- Custom canonical URLs per entity and per store, with fine-grained control over query strings, trailing slashes, and pagination.
- An SEO scoring and crawl audit system that gives each entity a 0-100 score, detects duplicates, and runs a site crawl for broken links and missing meta.
- A Google Merchant feed generated by cron or CLI and served at
/panth_seo/feed/google. - GA4 enhanced ecommerce with
view_item,view_item_listevents and a Measurement ID field. - Hreflang management with group CRUD, x-default support, and reciprocity validation.
- A URL key automation tool that generates product URL keys from a configurable template on save.
Which themes are supported? Both Hyva (server-rendered, no jQuery) and Luma. All output is server-rendered through layout XML and ViewModels.
What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free mage2kishan/module-core package.
Need Custom Magento 2 Development?
Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.
Visit our website: kishansavaliya.com | Get a quote: kishansavaliya.com/get-quote
Table of Contents
- Who Is It For
- Key Features
- Companion Modules
- Compatibility
- Installation
- Configuration
- How It Works
- FAQ
- Support
- About Panth Infotech
- Quick Links
Who Is It For
- Stores with large catalogs that need consistent, keyword-rich meta titles and descriptions without editing every product by hand. Meta templates with tokens do it automatically.
- Merchants who need control over canonicals on paginated, filtered, or multi-store pages to avoid duplicate content issues.
- Stores targeting multiple languages or regions that need hreflang tags with a reliable admin interface and reciprocity checks.
- Merchants using Google Shopping who want a cron-generated product feed without a separate third-party service.
- Developers and agency teams who need a central SEO audit, scoring dashboard, and bulk editor to manage SEO health across hundreds of entities.
Key Features
Meta Templates and Token Engine
- Token variables like
{name},{sku},{price},{category},{store},{attribute:X},{brand},{short_description}, and{year}in title and description templates. - Tokens support fallbacks:
{brand|Generic}rendersGenericwhen the attribute is empty. - Per-entity overrides on product, category, and CMS page edit forms. Overrides always take priority over templates.
- Force template over existing meta option to push templates to products that already have manually written meta.
- Append store name to all titles automatically, with a separate option to strip Magento's native title prefix and suffix.
- Pagination label in the meta title with configurable position (prefix, suffix, or none) and format.
SEO Rules Engine
- Condition-combine tree using Magento's native rule system: match on entity type, product attributes, stock status, price range, category membership, and URL path.
- Three action types: apply a meta template, set a canonical URL, or set a noindex directive.
- Priority ordering so you control which rule wins when multiple conditions match.
- Stop on match flag to skip lower-priority rules.
Bulk Meta Editor
- Admin grid showing resolved meta titles and descriptions for every product, category, and CMS page.
- Inline edit so you can fix titles and descriptions without opening each entity.
- Filter and sort by entity type, SEO score, or store view.
Canonical URL Control
- Emit canonical tag toggle with query string stripping, lowercase hostname, trailing slash removal, and homepage trailing slash settings.
- Paginated pages canonical to page 1 option, or keep self-canonical per page.
- Associated product canonical to parent for simple products used inside configurables, grouped, or bundle products.
- Cross-domain canonical store selector for multi-site setups.
- Per-entity ignore list to skip canonical emission on specific URL paths.
- Selective query parameter stripping via a comma-separated list, in addition to the full strip option.
- Product canonical URL type selector: no category path, shortest path, or deepest path.
SEO Scoring and Audit
- 0-100 score per entity based on title length, description length, duplicates, and readability.
- Duplicate meta detection using a content hash index stored in
panth_seo_duplicate. - Crawl audit that checks pages for broken links, missing meta, and redirect chains. Depth and max pages are configurable.
- SEO Toolbar for the storefront (restricted to allowed IPs) showing on-page diagnostics without a full page reload.
- Missing Meta Report under the admin menu showing entities with no title or description.
- Crawl Results grid under Admin showing each crawled URL, its HTTP status, canonical, robots directive, and detected issues.
Google Merchant Feed
- Google Shopping XML feed served at
/panth_seo/feed/google, regenerated by cron. - Feed profile CRUD with per-store settings, field mapping, category and attribute set filters, out-of-stock toggle, and FTP/SFTP delivery.
- CLI generation:
bin/magento panth:seo:feed. - Configurable shipping fields, Google product category attribute, and product condition.
GA4 Integration
- GA4 script output with your Measurement ID, controlled by a toggle.
- Enhanced ecommerce events:
view_itemon product pages andview_item_liston category pages. - Measurement ID validated server-side and stored safely.
Google Search Console
- Site verification meta tag from a single admin field.
- Google Indexing API integration that submits changed product, category, and CMS page URLs automatically on save (rate limited to 200 per day).
Hreflang Management
- Hreflang group CRUD in the admin with locale-to-store mapping and x-default designation.
- Reciprocity validation that flags when Store A links to Store B but Store B does not link back.
- Dedicated indexer (
panth_seo_hreflang) with mview for fast rendering on large catalogs.
URL Key Automation
- Template-based URL key generation for new products using tokens like
{{name}}and{{sku}}. - Option to re-apply the template on every save for existing products.
Advanced Performance Settings
- Async indexing via message queue to keep catalog saves non-blocking.
- MView incremental rebuild so only changed entities are reindexed.
- Last-Modified and ETag HTTP headers on product and category pages for efficient CDN revalidation.
- Speculation Rules API support for browser-native prefetch and prerender on Chrome 121+.
Hyva + Luma Ready
view/frontend/hyva.xmlmarker recognized byhyva-themes/hyva-compat.- No
requirejs-config.jsinview/frontend/, no jQuery, nomage/*widgets on the storefront. - Server-rendered output through layout XML and ViewModels.
- Works on stock Luma without modification.
Companion Modules
Panth Advanced SEO focuses on the core SEO surface. The following features live in dedicated Packagist modules. Install them alongside Advanced SEO when you need them.
| Module | Purpose |
|---|---|
mage2kishan/module-crosslinks |
Auto keyword to internal-link replacement in CMS, product, and category HTML. |
mage2kishan/module-redirects |
301/302/303/307/308/410/451 redirects, 404 log with clustering, CSV import, loop detector. |
mage2kishan/module-robots-seo |
Dedicated /robots.txt endpoint, X-Robots-Tag header, and 14-bot LLM crawler policy. |
mage2kishan/module-pagebuilder-ai |
AI meta generation via OpenAI or Claude with async jobs and "Generate with AI" buttons on admin forms. |
mage2kishan/module-html-sitemap |
Frontend HTML sitemap page (/sitemap) with categories, products, CMS pages, stores, and custom links. |
mage2kishan/module-xml-sitemap |
Sharded XML sitemap at /panth-sitemap.xml with profile CRUD, hreflang, image tags, gzip, and search engine ping. |
mage2kishan/module-structured-data |
JSON-LD schemas for Product, Breadcrumb, Organization, FAQ, Video, Review, and more. |
mage2kishan/module-social-meta |
OpenGraph and Twitter Card head tags. |
Each companion module is independent. Install only what your store needs.
Compatibility
| Requirement | Versions Supported |
|---|---|
| Magento Open Source | 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8 |
| Adobe Commerce | 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8 |
| Adobe Commerce Cloud | 2.4.4 to 2.4.8 |
| PHP | 8.1.x, 8.2.x, 8.3.x, 8.4.x |
| Hyva Theme | 1.0+ (native, hyva.xml marker) |
| Luma Theme | Native support |
| Required Dependency | mage2kishan/module-core (free) |
Installation
Composer Installation (Recommended)
composer require mage2kishan/module-advanced-seo bin/magento module:enable Panth_Core Panth_AdvancedSEO bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f bin/magento indexer:reindex panth_seo_resolved_meta panth_seo_hreflang bin/magento cache:flush
Manual Installation via ZIP
- Download the latest release from Packagist or from the product page.
- Extract it to
app/code/Panth/AdvancedSEO/in your Magento install. - Make sure
Panth_Coreis installed too (required dependency). - Run the commands above starting from
bin/magento module:enable.
Verify Installation
bin/magento module:status Panth_AdvancedSEO
# Expected: Module is enabled
After install, open:
Admin → Stores → Configuration → Panth Extensions → Advanced SEO
Configuration
Go to Stores → Configuration → Panth Extensions → Advanced SEO.
| Setting | Group | Default | Description |
|---|---|---|---|
| Enable Module | General | Yes | Master switch for all Advanced SEO features. |
| Debug Logging | General | No | Writes detailed logs to var/log/panth_seo.log. Disable in production. |
| Use Meta Templates | Meta Tags | Yes | Apply token-based templates to entities that have no custom meta. |
| Meta Title Max Length | Meta Tags | 60 | Maximum characters for the title tag. |
| Meta Description Max Length | Meta Tags | 160 | Maximum characters for the description tag. |
| Append Store Name to Title | Meta Tags | No | Adds " - Store Name" to all meta titles. |
| Strip Native Title Prefix/Suffix | Meta Tags | No | Removes Magento's default title prefix and suffix to give full control to templates. |
| Enable SEO Name Token | Meta Tags | No | Enables the {{seo_name}} token using a dedicated product SEO name attribute. |
| Pagination Label Position | Meta Tags | None | Where to place the page number indicator in the title: prefix, suffix, or none. |
| Pagination Format | Meta Tags | | Page %p | Use %p as the page number placeholder. |
| Force Template Over Existing Meta | Meta Tags | No | When on, templates override manually written meta on products and categories. |
| Emit Canonical Tag | Canonical URLs | Yes | Outputs rel="canonical" on all pages. |
| Strip Query String | Canonical URLs | No | Removes all query parameters from canonical URLs. |
| Lowercase Host | Canonical URLs | Yes | Forces the hostname in canonical URLs to lowercase. |
| Remove Trailing Slash | Canonical URLs | Yes | Removes trailing slashes from canonical URLs (except homepage). |
| Paginated Pages Canonical to Page 1 | Canonical URLs | No | When on, page 2, 3, etc. point their canonical to page 1. |
| Associated Product Canonical to Parent | Canonical URLs | No | Simple products in configurables or bundles point their canonical to the parent. |
| Cross-Domain Canonical Store | Canonical URLs | - | Select a store view for cross-domain canonical links. |
| Ignore Pages | Canonical URLs | - | URL paths that should not emit a canonical tag (one per line). |
| Disable Canonical for NOINDEX Pages | Canonical URLs | No | Suppresses canonical on noindex pages. |
| Product Canonical URL Type | Canonical URLs | No category path | Build product canonicals without any category path, with the shortest path, or the deepest path. |
| Use Short Category URL for Canonical | Canonical URLs | No | Use the shallowest URL path for category canonical URLs. |
| Trailing Slash on Homepage | Canonical URLs | Add | Controls trailing slash on the homepage canonical independently. |
| Strip Query Parameters | Canonical URLs | - | Comma-separated list of parameter names to strip in addition to the full strip option. |
| Auto-Generate URL Key on Product Creation | URL Key Automation | No | Generates a URL key from a template when a new product has no key set. |
| URL Key Template | URL Key Automation | - | Tokens: {{name}}, {{sku}}, {{attribute:code}}. |
| Also Apply to Existing Products on Save | URL Key Automation | No | Re-applies the URL key template every time an existing product is saved. |
| Enable Crawl Audit | Reports & Diagnostics | No | Runs periodic site crawl audits. Resource intensive on large catalogs. |
| Crawl Depth (max pages) | Reports & Diagnostics | 100 | Maximum pages per audit run. |
| Enable SEO Toolbar | Reports & Diagnostics | No | Shows an on-page SEO diagnostics toolbar on the storefront for allowed IPs. |
| SEO Toolbar Allowed IPs | Reports & Diagnostics | - | Comma-separated IPs or CIDR ranges. Disables FPC for matched requests. |
| Enable Google Merchant Feed | Google Merchant Feed | No | Serves the feed at /panth_seo/feed/google and regenerates it daily. |
| Include Out of Stock Products | Google Merchant Feed | No | Adds out-of-stock products with availability "out of stock". |
| Default Product Condition | Google Merchant Feed | new | Condition value used when no product-level condition is set. |
| Google Product Category Attribute | Google Merchant Feed | - | Product attribute code holding the Google taxonomy value. |
| Shipping Country | Google Merchant Feed | - | Two-letter ISO country code for the shipping element. |
| Shipping Price | Google Merchant Feed | - | Flat shipping price for the shipping element. |
| Enable GA4 | Google Analytics 4 | No | Outputs the gtag.js snippet on the storefront. |
| Measurement ID | Google Analytics 4 | - | Your G-XXXXXXXXXX GA4 Measurement ID. |
| Enhanced Ecommerce Events | Google Analytics 4 | No | Fires view_item and view_item_list events on product and category pages. |
| Site Verification Code | Google Search Console | - | Content value from the Google HTML tag verification method. |
| Enable Indexing API | Google Search Console | No | Submits changed URLs to the Google Indexing API on content save. |
| Service Account JSON Key | Google Search Console | - | Your Google Cloud service account key (stored encrypted). |
| Async Indexing via Queue | Advanced | No | Offloads SEO indexing to the message queue for non-blocking catalog saves. |
| Use MView for Incremental Rebuild | Advanced | No | Uses Magento's mview changelog for incremental reindexing instead of full reindex. |
| Enable Last-Modified HTTP Header | Advanced | No | Sets Last-Modified and ETag headers on product and category pages. |
| Enable Speculation Rules API | Advanced | No | Outputs Speculation Rules for browser-native prefetch and prerender on Chrome 121+. |
How It Works
- When a product, category, or CMS page loads, the module reads the resolved meta indexer (
panth_seo_resolved_meta) to get the pre-built title, description, canonical, and robots directive for that entity and store. - The indexer resolves in this priority order: entity-level override, then matching SEO rule, then matching meta template, then Magento's native field value.
- Meta templates are evaluated at index time with tokens replaced by live attribute values from the catalog.
- Canonical URLs are built from the configuration settings and any per-entity override stored in
panth_seo_custom_canonical. - The SEO scoring cron runs against
panth_seo_scoreand assigns each entity a 0-100 score based on length, duplicates, and readability checks. Results appear in the admin audit grid. - The Google Merchant feed is built by the
panth:seo:feedcommand or the daily cron and written topub/media/panth_seo/google_feed_{store_code}.xml, then served at/panth_seo/feed/google. - GA4 tracking outputs the
gtag.jssnippet in the page head and fires structured ecommerce events from a ViewModel, with no jQuery dependency.
FAQ
Does Panth Advanced SEO work with Hyva themes?
Yes. The module ships a view/frontend/hyva.xml marker, contains no requirejs-config.js, and renders all meta and canonical output server-side through layout XML. No jQuery or mage/* widgets on the storefront.
Will meta templates overwrite meta I already wrote on my products?
Not by default. The "Force Template Over Existing Meta" setting is off. Templates fill in the meta only when a product or category has no manually set value. Turn the setting on if you want templates to always apply.
What is the SEO rules engine for?
It lets you apply SEO settings to groups of products based on conditions, without editing each product. For example: all in-stock products in a specific category get a canonical pointing to the parent, or all filtered layered navigation pages get a noindex directive.
Does the Google Merchant feed require a separate plugin?
No. The feed is built into the module. Enable it under Configuration, configure the feed profile with your field mapping and store, and the cron regenerates it daily. You can also trigger it manually with bin/magento panth:seo:feed.
How does GA4 work without jQuery?
The module outputs the gtag.js snippet directly in the page head via a layout block. The view_item and view_item_list events are fired from server-side rendered <script> blocks in the product and category page layout. No Alpine.js or jQuery involved.
Do I need all the companion modules to use Advanced SEO?
No. Advanced SEO works on its own for meta templates, canonicals, rules, scoring, feed, and GA4. The companion modules (redirects, robots, XML sitemap, etc.) are optional and each installs independently.
Is hreflang handled inside this module?
Yes, the hreflang group CRUD and the panth_seo_hreflang indexer are built into Advanced SEO. You create groups in the admin, map stores to locales, and the indexer pre-builds the alternate links. A dedicated companion module (mage2kishan/module-hreflang) is also available if you need a standalone version.
Can I run the SEO audit on demand?
Yes. Use bin/magento panth:seo:audit from the command line, or enable the crawl audit in configuration to run it on a schedule. Results appear in Admin under Advanced SEO > Crawl Results.
Does Panth Advanced SEO need Panth Core?
Yes. mage2kishan/module-core is a free, required dependency that Composer installs for you automatically.
Support
| Channel | Contact |
|---|---|
| Product Page | kishansavaliya.com/magento-2-advanced-seo.html |
| kishansavaliyakb@gmail.com | |
| Website | kishansavaliya.com |
| +91 84012 70422 | |
| GitHub Issues | github.com/mage2sk/module-advanced-seo/issues |
| Upwork (Top Rated Plus) | Hire Kishan Savaliya |
| Upwork Agency | Panth Infotech |
Response time: 1-2 business days.
Need Custom Magento Development?
Looking for custom Magento SEO audits, Hyva theme development, store migrations, or performance optimization? Get a free quote in 24 hours:
About Panth Infotech
Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.
Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.
Browse the full extension catalog on our Magento extensions page or on Packagist.
Quick Links
| Resource | Link |
|---|---|
| Product Page | magento-2-advanced-seo.html |
| Packagist | mage2kishan/module-advanced-seo |
| GitHub | mage2sk/module-advanced-seo |
| Website | kishansavaliya.com |
| Free Quote | kishansavaliya.com/get-quote |
| Upwork (Top Rated Plus) | Hire Kishan Savaliya |
| Upwork Agency | Panth Infotech |
| kishansavaliyakb@gmail.com | |
| +91 84012 70422 |
Ready to take control of your Magento 2 store's SEO?
SEO Keywords: magento 2 seo extension, magento 2 advanced seo, panth advanced seo, panth infotech seo, magento 2 meta templates, magento 2 meta title template, magento 2 meta description template, magento 2 seo rules engine, magento 2 canonical url, magento 2 canonical tag extension, magento 2 bulk meta editor, magento 2 seo score, magento 2 seo audit, magento 2 crawl audit, magento 2 google merchant feed, magento 2 google shopping feed, magento 2 ga4 integration, magento 2 ga4 enhanced ecommerce, magento 2 hreflang, magento 2 hreflang extension, magento 2 multi-store hreflang, magento 2 url key automation, magento 2 duplicate meta finder, magento 2 missing meta report, magento 2 seo dashboard, magento 2 speculation rules, magento 2 last modified header, magento 2 indexing api, magento 2 google search console, magento 2 seo toolbar, magento 2 token meta templates, hyva seo, hyva advanced seo, luma seo extension, magento 2.4.8 seo, magento 2.4.7 seo, php 8.4 seo extension, mage2kishan advanced seo, mage2kishan seo, mage2sk advanced seo, hire magento seo developer, top rated plus magento seo, kishan savaliya seo, panth infotech magento seo, adobe commerce seo extension, magento open source seo, magento 2 enterprise seo, magento 2 b2b seo, multi-store seo magento, magento commerce cloud seo
统计信息
- 总下载量: 66
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 28
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: proprietary
- 更新时间: 2026-04-14