SEO
Your application includes a pre-configured SEO service for managing meta tags, Open Graph data, Twitter cards, and Schema.org structured data. Follow the steps below to configure and use it effectively.
Setup Instructions
1. Configure Default SEO Values
- Open the
config.tsfile in your project root. - Set the following required values:
These values will be used as default SEO tags for all pages.
2. Add SEO Tags to Pages
Use the updateMetaTags method from the SeoService to set custom SEO tags for individual pages without rewriting all tags.
Example: Adding Custom SEO Tags
3. Add Structured Data
To improve your website's visibility on search engines and enhance search results, use the renderSchemaTags method to inject Schema.org structured data.
Example: Adding Structured Data
The renderSchemaTags function automatically uses values from config.js to generate structured data.
4. Generate a Sitemap [TODO]
5. Claim Your Domain on Google Search Console
- Visit Google Search Console.
- Add your domain and verify ownership to improve indexing.
Features
Dynamic Meta Tags
- Automatically sets
<title>and<meta>tags using default or custom values.
Open Graph and Twitter Cards
- Optimize your pages for social media sharing.
Schema.org Structured Data
- Enhance visibility with structured data for better search engine understanding.
With these steps, your application is now equipped with a fully integrated and customizable SEO service. For further optimizations, explore advanced SEO practices.