For local businesses—cafés, boutiques, salons—being found online is as critical as a prime storefront location. A well-optimized website can put you at the top of search results when customers in your neighborhood look for your offerings. In this guide, we’ll cover practical SEO steps, illustrated with examples, that any non-technical owner can implement in an Astro project.
Why it matters: Your page title is the first thing searchers see. A concise, descriptive title with your service and neighborhood boosts clicks and local relevance.
How to implement:
Business Name — Service in Neighborhood
<title>Sunrise Café — Specialty Coffee & Pastries in Midtown Atlanta</title>
Best practices:
⸻
Why it matters: Meta descriptions appear under the title in search results. A clear, benefit-focused snippet drives higher click-through rates.
How to implement:
Tips:
⸻
Why it matters: Clear heading hierarchy helps Google understand your page’s layout and makes content scannable for readers.
How to implement:
Example structure:
Tip:
⸻
Why it matters: Alt text describes images to screen readers and gives search engines context. Local keywords here reinforce relevance.
How to implement:
Examples:
Tip:
⸻
Why it matters: A verified Google Business listing puts your map pin, hours, reviews, and contact info front and center in local searches.
How to implement: 1. Go to Google Business Profile and claim your listing. 2. Verify your address via postcard, phone, or email. 3. Ensure your website URL points to your Astro site’s homepage.
Benefit: • In “Local Pack” results, your business appears alongside a map—prime real estate for foot-traffic-driven companies.
⸻
Why it matters: A sitemap tells search engines which pages to crawl. robots.txt directs bots away from unimportant sections.
How to implement in Astro: 1. Install the sitemap integration:
npm install astro-sitemap
2. Add to astro.config.mjs:
import sitemap from ‘astro-sitemap’;
export default { integrations: [sitemap()], sitemap: { filter: (page) => !page.includes(‘/drafts/’), }, };
3. Create a public/robots.txt:
User-agent: * Disallow: /drafts/ Sitemap: https://your-domain.com/sitemap.xml
Tip: • Update your sitemap whenever you add or remove pages to keep indexing current.
⸻
Why it matters: Structured data enables rich snippets (star ratings, hours, address) directly in search results, increasing click-throughs.
How to implement: Place this in your site’s within your Astro layout:
Tip:
• Use Google’s Rich Results Test to verify your JSON-LD.
⸻
Why it matters: Over 60% of searches are on mobile. Google penalizes slow, non-responsive sites.
How to implement:
Tip:
⸻
Conclusion & Next Steps
Implementing these SEO practices on your Astro site positions your local business to capture more customers searching in your area. Start with titles and meta descriptions, then move through structured data and mobile optimizations. Over time, monitor your Google Search Console for performance insights and adjust as needed.
Final Takeaway: Small, consistent SEO improvements compound—helping your café, shop, or service stand out in local search and attract more foot traffic every day.
©Copyright 2020 by Avid Tech Usa. Built with ♥ by Omar Madjitov.