SEO (Search Engine Optimization)
How it work currently
We use JSON-LD to provide rich data on each restaurant
Front end app get the data from backend app by call https://hungryhub.com/api/v5/restaurants/33/json_ld.json?client_type=web API (33 is the restaurant ID)
FE app insert the JSON data into the HTML body
Google bot will read the restaurant schema every X days/weeks/months
Here is the correct result once Google Bot crawl it successfully
You can read more about JSONLD here https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data
our JSONLD has
- title
- description
- rating
- total reviews
- price
- and more (you can check the JSONLD api result using json viewer tool)
How do we manage SEO data
Each restaurant has SEO data
there is app/models/seo.rb
we maintain it in restaurant edit page
_20250815151555_image.png)