SEO
Learn how to change your SEO meta tags and more
Enterprise Commerce prioritizes search engine optimization (SEO) with a comprehensive approach that includes:
Technical SEO
- Lighthouse Score: We maintain a perfect 100 score in Lighthouse audits, ensuring optimal technical performance.
- Best Practices: We adhere to SEO best practices, including canonicals, server-side pagination, and a well-defined URL structure.
- JSON-LD: We implement structured data using JSON-LD for product pages, providing rich information to search engines and enhancing search visibility. JSON-LD is rendered as a
<script>
tag in the page component.
Metadata API
If you want to customize the meta tags in your Next.js application, you have two options:
-
Static Metadata: Export a constant
metadata
object in yourpage.tsx
orlayout.tsx
file. This is suitable when the metadata values are static and don’t require any dynamic processing.Example:
-
Dynamic Metadata: Export an async function called
generateMetadata
in yourpage.tsx
orlayout.tsx
file. This function receives the route parameters as an argument and returns aPromise<Metadata>
. Use this approach when you need to fetch data or perform dynamic operations before returning the metadata.Example:
In this example, the
generateMetadata
function receives theslug
parameter from the route, fetches the corresponding page data using thegetPage
function, and returns the metadata object based on the fetched data.