jgrss / geowombat

GeoWombat: Utilities for geospatial data
https://geowombat.readthedocs.io
MIT License
184 stars 10 forks source link

Google SEO #257

Open mmann1123 opened 1 year ago

mmann1123 commented 1 year ago

We should strongly consider including the google analytics SEO and sitemap. These should make the site much easier to find through search engines. Plus you can obsessively check how many people are looking at the site at any given moment.

I am not sure how much of this has been done, but I will walk you through it just in case:

1) Register site with google search console https://search.google.com/search-console/about

2) If you want more detailed analytics you also might look into adding a google analytics ID

I am happy to help just let me know.

jgrss commented 1 year ago

@mmann1123 do you want to get this in now, or do you want to review #252?

mmann1123 commented 1 year ago

@jgrss Happy to review 252 without this. Although it looks like CI tests are failing.

mmann1123 commented 1 year ago

I am going to assume that you want ownership of this. Unless I am told otherwise- since its associated with a particular google account.

In particular if you can get the site registered:

1) Register site with google search console https://search.google.com/search-console/about

I can help with the google analytics side of thing.

jgrss commented 1 year ago

Where is the Google HTML verification file supposed to live?

mmann1123 commented 1 year ago
  1. go to google search console https://search.google.com/search-console/

  2. add new "property" with "URL prefix" as suggested

  3. Download the googlea<id>.html file and place it in docs/source (e.g. module/docs/source). Use html_extra_path inside of conf.py as follows (i.e. add the following line somewhere in conf.py):

html_extra_path = ["googlea<id>.html"]

  1. for sphinx
    make clean
    make html

    and check to make sure docs/build/html/googlea<id>.html exists.

  1. Commit, push, and wait for your website to update (this could take a few minutes)
  2. If you have the webpage from step 1 still open, click VERIFY, otherwise navigate back to Google Search Console, and re-enter your URL (e.g. https://geowombat.readthedocs.io/en/latest). If it worked, it should tell you so, and you can then "Go to property".

Then you need to sort out the sitemap.xml

A. To do this properly it requires you to generate a sitemap.xml and host it along side the website in the root directory.

B. Once the sitemap is published to the web, open https://geowombat.readthedocs.io/sitemap.xml in your browser, it should have a list of ALL the pages making up your webpage. CHECK that they are valid URLS ie https://geowombat.readthedocs.io/en/latest/tutorial.html not https://geowombat.readthedocs.ioen/latest/tutorial.html .

C. Go to google search console again. Hit the sitemaps tab, and paste the full URL to your sitemap ie. https://geowombat.readthedocs.io/sitemap.xml

jgrss commented 1 year ago

Steps 1-3 are done in #262.

mmann1123 commented 1 year ago

@jgrss can we close this?

mmann1123 commented 1 year ago

oops accidentally closed