SEO
Improve your technical SEO
Use the SEO
component to improve your site’s technical SEO score. It help you optimize titles, meta tags, load times, and structured content.
Note that the component does not generate a head
tag. You must use the SEO
component within a head
. The above code will generate the following tags for you:
If you’d like to use the SEO
component with a premade layout, you can use the Layout
component. You can also explore our template library where the SEO
component is already integrated into each template.
API
Prop | Purpose |
---|---|
title | Sets the title , og:title , and twitter:title tags. |
url | Sets the og:url and canonical URL. |
faviconUrl | Sets the link for the favicon. |
description | Sets meta description as well as og and twitter description tags. |
canonical | Sets the canonical URL. Overrides the url prop. |
prefetchGTAG | Prefetches the Google Tag Manager script. |
prefetchGA | Prefetches the Google Analytics script. |
noIndex | Sets the robots meta tag to noindex, nofollow when set to true . |
meta | Sets additional meta tags for the page. |
hrefLangs | Sets hreflang tags for alternate pages. |
structuredContents | Sets structured content for the page. |