Skip to content

Add Merchant Center XML feed, post-sale cache/IndexNow refresh, and CloudFront v2 logs - #21

Merged
AaronFilson merged 1 commit into
masterfrom
seo-improve-round-2
Nov 29, 2026
Merged

AaronFilson merged 1 commit into
masterfrom
seo-improve-round-2

Conversation

@AaronFilson

Copy link
Copy Markdown
Owner

Summary

  • Google Merchant Center & Pinterest Catalogs feed (/p/merchant.xml): Serves live Google Shopping RSS 2.0 XML (xmlns:g="http://base.google.com/ns/1.0") from Api (backend/src/piece-page.mjs, backend/src/piece.mjs, backend/src/handler.mjs, and scripts/serve.mjs) with <g:identifier_exists>no</g:identifier_exists>, primary + additional photos, in_stock / out_of_stock, google_product_category, product_type, material, 3D dimensions, product_weight, shipping_weight, handling/transit days, and WA + US <g:shipping> rates.
  • Post-sale /p/* cache clear & IndexNow notification: backend/src/notify-sale.mjs invalidates /p/<id>, /p/sitemap.xml, /p/feed.xml, and /p/merchant.xml in CloudFront and notifies IndexNow immediately after a completed production checkout (with 3s timeouts and non-throwing error handling so payment responses are never affected).
  • Cookie-free CloudFront standard logs v2 + share UTM tags: Adds encrypted, private updraft-logs* S3 buckets with 90-day expiry and CloudWatch Logs v2 JSON delivery (deploy/site.yaml, deploy/copper-bell-publish-policy.json), npm run seo-logs (scripts/seo-logs.mjs) to summarise search/social/AI bot crawls, top piece views, and utm_source visits, and ?utm_source=share on shared piece URLs (site/js/share.js).
  • Pinterest domain verification support: Adds scripts/pinterest-verify.mjs to upsert pinterest-site-verification in Route 53 alongside Google Search Console's TXT record, plus optional pinterestVerify <meta name="p:domain_verify"> support in scripts/build.mjs.
  • Follow-up note: Records the October batch unpacked scale weights (itemLb) and coaster thickness follow-up in docs/seo-plan.md.

Verification

  • npm run lint, npm run typecheck, npm run format:check
  • npm test (74/74 passing)
  • Playwright e2e (e2e/seo.spec.mjs, e2e/piece.spec.mjs, e2e/piece-page.spec.mjs: 34/34 passing)
  • Deployed and verified on both staging and prod (/p/merchant.xml, updraft-logs* v2 delivery, 301 canonical edge redirects, and Checkout DISTRIBUTION_ID)

…loudFront v2 logs

- Add /p/merchant.xml Google Shopping RSS 2.0 product feed for Google Merchant Center and Pinterest Catalogs (identifier_exists=no, taxonomy IDs, 3D dimensions, item/shipping weights, WA/US Ground shipping rates, and live stock status).
- Immediately invalidate /p/<id> and /p/*.xml feeds in CloudFront and notify IndexNow upon completed production checkouts (best-effort, non-blocking).
- Enable cookie-free CloudFront standard logs v2 (JSON, 90-day lifecycle expiry) to private S3 buckets and add npm run seo-logs summary CLI.
- Append ?utm_source=share to shared piece links and add Pinterest domain verification tooling (scripts/pinterest-verify.mjs and site.json pinterestVerify).
- Record follow-up note for October batch scale weights (itemLb) in docs/seo-plan.md.
@AaronFilson
AaronFilson merged commit ddcb340 into master Nov 29, 2026
3 checks passed
@AaronFilson
AaronFilson deleted the seo-improve-round-2 branch November 29, 2026 03:54
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