Skip to content

Make google-site-verification meta tag configurable (#90)#513

Draft
kltm wants to merge 1 commit into
ncbo:masterfrom
berkeleybop:feature/configurable-google-site-verification
Draft

Make google-site-verification meta tag configurable (#90)#513
kltm wants to merge 1 commit into
ncbo:masterfrom
berkeleybop:feature/configurable-google-site-verification

Conversation

@kltm

@kltm kltm commented Jun 1, 2026

Copy link
Copy Markdown

Summary

The google-site-verification meta tag was hard-coded (the same token) across four layouts. This makes it configurable:

  • New per-environment google_site_verification key in config/settings.yml (token for staging/production; null for development/test/appliance), mirroring how google_analytics is handled.
  • New ApplicationHelper#google_site_verification_meta_tag that renders the tag, omitting it on the appliance and when no token is configured.
  • The _header, angular, partial, and popup layouts now call the helper instead of hard-coding the tag (incidentally giving partial/popup the same appliance suppression the other two already had).

Testing

  • Helper unit test: configured / blank / appliance branches.
  • Full-stack integration test: tag present when configured / absent when not, in a real page rendered through the layout.

Both green in the dev container.

Dependency

CI here depends on the minitest 5.x pin in #512 (the Rails 8 Minitest harness is otherwise broken and bin/rails test crashes). Once #512 lands, this PR's tests run clean; I'll rebase on master afterward.

Closes #90.

— Posted by Claude Code agent on behalf of @kltm.

The google-site-verification meta tag was hard-coded identically across
four layouts. Add a per-environment `google_site_verification` setting
(settings.yml) and an `ApplicationHelper#google_site_verification_meta_tag`
helper that renders it, omitting the tag on the appliance and when no
token is configured. Replace the hard-coded tag in the _header, angular,
partial, and popup layouts with the helper.

Includes a helper unit test (configured / blank / appliance) and a
full-stack integration test asserting the tag's presence/absence in a
rendered page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

metatag google-site-verification should be a configurable option

1 participant