Skip to content

chore(seo): add the Google Search Console verification file - #32

Merged
pierrejochem merged 1 commit into
mainfrom
chore/google-search-console-verification
Oct 4, 2026
Merged

pierrejochem merged 1 commit into
mainfrom
chore/google-search-console-verification

Conversation

@pierrejochem

Copy link
Copy Markdown
Owner

Why

Google has no unauthenticated sitemap submission API. A sitemap can only be submitted against a verified Search Console property, and this site had none — so sitemap.xml is currently unknown to Google, even though IndexNow has already notified Bing, Yandex and Seznam.

Of the verification methods on offer:

  • Domain property — needs DNS control of github.io. Not ours.
  • HTML tag — puts a verification token in the homepage <head>. Works, but mixes an account credential into page markup.
  • HTML file — a single static file at the site root. Cleanest fit for a Pages site, and what the Speculum docs site already uses.

Change

Adds docs/google360055fd3ac142c0.html, served at:

https://pierrejochem.github.io/SpeculumExampleModule/google360055fd3ac142c0.html

Contents are the one line Google expects:

google-site-verification: google360055fd3ac142c0.html

The token is tied to the Google account, not the site, which is why this is byte-identical to the file the Speculum docs site already serves for its own property. Verifying a second property with it is the intended use.

Important

Search Console re-checks this file periodically and unverifies the property if it ever 404s. It has to stay in place for as long as the property exists — like the IndexNow key file beside it, the opaque name makes it look like cruft.

After merge

Once Pages redeploys and the file is live, verification gets confirmed in Search Console and sitemap.xml submitted against the new property.

Google has no unauthenticated sitemap submission API — a sitemap can only be
submitted against a verified Search Console property, and this site had none.
Of the available methods, the HTML-file one is the only one that fits: the
Domain type needs DNS control of github.io, and the meta-tag variant would put
a verification token in the homepage markup.

Adds docs/google360055fd3ac142c0.html, served at
https://pierrejochem.github.io/SpeculumExampleModule/google360055fd3ac142c0.html

The token is per Google account rather than per site, so this is the same file
the Speculum docs site already serves for its own property.

Search Console re-checks the file periodically and unverifies the property if
it ever 404s, so it has to stay in place for as long as the property exists.
@pierrejochem
pierrejochem merged commit 5beba2d into main Oct 4, 2026
1 check passed
@pierrejochem
pierrejochem deleted the chore/google-search-console-verification branch October 4, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant