SEO and Metadata Differences with PWA Kit
PWA Kit uses react-helmet to manage meta tags, with developers manually adding Helmet components to each page. Storefront Next provides a comprehensive SEO system built around the SeoMeta component, with built-in support for hreflang alternates, canonical URLs, Open Graph, Twitter Cards, and robots control. Both support dynamic metadata, but Storefront Next offers a more complete, production-ready SEO implementation out of the box.
| Aspect | PWA Kit | Storefront Next |
|---|---|---|
| Library | react-helmet | Built-in React component (SeoMeta) |
| Pattern | Manual Helmet in each page | SeoMeta component |
| Dynamic Meta | Implemented via Helmet | Implemented via SeoMeta |
| Hreflang | Not documented | Automatic locale alternates |
| Canonical URLs | Not documented | With query param normalization |
| Robots Control | Manual via Helmet | Built-in noIndex prop |
| Social Tags | Manual via Helmet | Open Graph + Twitter Card support |
| API Integration | Consumes pageMetaTags | Uses SeoMeta with dynamic props |
PWA Kit:
Storefront Next:
PWA Kit consumes the Commerce API’s pageMetaTags array directly:
Storefront Next uses the SeoMeta component with explicit props rather than consuming pageMetaTags directly:
If you need to consume pageMetaTags in Storefront Next, you can map them to the SeoMeta props or render them as additional meta tags.
- Dynamic metadata: Both support dynamic page titles and meta descriptions.
- SSR support: Both render meta tags server-side for SEO.
- Component-based: Both use React components to manage meta tags.
- No structured data: Neither implements JSON-LD by default (can be added manually).
- Hreflang alternates: Automatically generates locale-specific alternate links with x-default support.
- Canonical URLs: Built-in canonical URL generation with query parameter normalization and allowlist.
- Social tags: Built-in Open Graph and Twitter Card support via
SeoMetaprops. - Robots control: Simple
noIndexprop for controlling search engine indexing. - Centralized SEO utils: SEO logic consolidated in
src/utils/seo.tsandsrc/utils/canonical-url.ts. - Title modes: Support for suffixed (default), raw, and fallback title rendering.
Storefront Next automatically generates hreflang tags for all supported locales:
PWA Kit does not provide built-in hreflang support. You would need to implement this manually using react-helmet.
Storefront Next includes sophisticated canonical URL handling with query parameter normalization:
Allowed parameters (kept in canonical URL):
q- search queryoffset- paginationsort- sort orderrefine- filterspid- product variant ID
Removed parameters: All tracking params, analytics IDs, and non-content parameters are stripped.
PWA Kit does not provide built-in canonical URL management. You would need to implement this manually.
When migrating from PWA Kit to Storefront Next:
-
Replace react-helmet with SeoMeta
- Remove
react-helmetimports and<Helmet>components. - Replace with
<SeoMeta>component from@/components/seo-meta. - Convert inline meta tags to
SeoMetaprops.
- Remove
-
Leverage Built-in SEO Features
- Hreflang alternates are already configured in
src/utils/seo.ts. - Canonical URLs are automatically generated via
src/utils/canonical-url.ts. - Add
openGraphandtwitterprops toSeoMetafor social sharing.
- Hreflang alternates are already configured in
-
Add noIndex for Protected Pages
- Use
<SeoMeta noIndex />for account, checkout, and order pages. - This prevents search engines from indexing private content.
- Use
-
Configure Query Parameters
- Update
CONTENT_PARAMSinsrc/utils/canonical-url.tsif you add custom query params that affect page content.
- Update
-
Optional: Add Structured Data
- Consider adding JSON-LD for products, categories, and breadcrumbs.
- Render
<script type="application/ld+json">tags within route components.
-
Test Multi-Locale Sites
- Verify hreflang links are generated correctly for all locales.
- Confirm canonical URLs strip locale prefixes appropriately.