Basic SEO Setup
Page Metadata
Every page should have metadata. Ask AI:Implementation
In Astro, metadata lives in the page’s<head> as standard tags:
Essential SEO Elements
Title Tags
- Unique per page - Each page needs its own title
- Under 60 characters - Longer gets truncated
- Include keywords - What users search for
- Brand at end - “Page Name | MyApp”
Meta Descriptions
- Under 160 characters - Keep it concise
- Include call-to-action - Why click?
- Unique per page - No duplicates
Headings
Proper heading structure matters:Technical SEO
Sitemap
Generate a sitemap for search engines:sitemap-index.xml is produced at build time covering every page:
Robots.txt
Control what search engines can crawl:public/, so a robots.txt there is picked up automatically:
Canonical URLs
Prevent duplicate content issues with a canonical<link> in the page <head>:
Performance for SEO
Google considers page speed. Optimize:Image Optimization
Core Web Vitals
Target these metrics:| Metric | Target | What It Measures |
|---|---|---|
| LCP | < 2.5s | Loading speed |
| INP | < 200ms | Interactivity (responsiveness) |
| CLS | < 0.1 | Visual stability |
Content SEO
Semantic HTML
Alt Text for Images
Internal Linking
Link between your pages:Social Sharing
Open Graph
For Facebook, LinkedIn — add Open Graph meta tags to the page<head>:
Twitter Cards
For Twitter/X — add Twitter Card meta tags to the page<head>:
Creating OG Images
Structured Data
Help search engines understand your content:Organization
FAQ
Product
SEO Checklist
Before launching:- Unique title tags per page
- Meta descriptions on all pages
- Proper heading hierarchy (one H1)
- Alt text on all images
- Sitemap.xml generated
- Robots.txt configured
- Canonical URLs set
- Open Graph tags added
- Mobile-friendly design
- Fast page load speed
- HTTPS enabled (automatic with Kleap)
- Internal linking in place
Monitoring SEO
After launching:- Google Search Console - Monitor indexing and performance
- Kleap Analytics - Track Core Web Vitals
- Google PageSpeed Insights - Check performance
Analytics
Track your app’s performance

