google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 290 forks source link

Add a sitemap submission feature #7048

Open jamesozzie opened 1 year ago

jamesozzie commented 1 year ago

Feature Description

Now that WordPress has sitemap functionality built in, make it easy for users to submit this to Search Console, or for them to submit their own other than the default WordPress sitemap. This could include sitemaps built via other plugins.

An example of what may work would be the below, however, this would need some consideration during Site Kit setup, so users are aware or have the choice of submitting their sitemap (rather than having to visit their Search Console settings)

sitemap

Note that there were previous feature requests for the same, see below:

In the first previous feature request above it was closed on the based that WordPress already has default sitemap functionality built in. This however doesn't mean Search Console recognizes the sitemap. Sitemap submission is also supported by the API in use.

We've also had numerous support requests or queries for this, see some below examples:


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

marrrmarrr commented 1 year ago

Hmmm I think this is going into replicating too much of Search Console functionality territory. Also I think a lot of SK users probably don't know what Sitemaps are, so it would probably end up as little used element hidden in Settings. I think Sitemaps could be an interesting tool for a future feature where we help people immediately submit their new posts, or submit updated posts.

aaemnnosttv commented 3 weeks ago

Hmmm I think this is going into replicating too much of Search Console functionality territory. Also I think a lot of SK users probably don't know what Sitemaps are, so it would probably end up as little used element hidden in Settings.

I would agree if this required the kind of input envisioned above, however that wouldn't really be necessary since WP core's sitemap URL is available to us as of WP 5.5.1, so we could technically auto-submit this to Search Console during setup – no added interface or action required.

It's worth noting that WP also already makes its sitemaps discoverable automatically via its robots.txt so it's not clear how much, if any, additional benefit this submission would provide. We've had additional requests for this feature lately, but upon further investigation, it may not be needed afterall.

image

Source: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#cmssitemap

Reopening for further consideration while we investigate.