DOM transforms

Fix the markup on the way out — without touching templates.

Match the URLs you care about with regex and rewrite the HTML they return. Swap tags, correct heading order, set titles, and inject structured data — all applied in transit.

The hardest audit findings to ship are the ones buried in templates — a wrong heading level, a missing schema block, a legacy wrapper that breaks semantics.

DOM transforms let you target those with a pattern and a rule set. When a request matches, Site Transformer rewrites the response body before it reaches the browser and the crawler — so the page Google indexes is the page you designed.

What you can rewrite

  • Swap or rename tags — turn .post-wrap-legacy into a semantic <article> with the right microdata.
  • Repair headings — promote, demote, or de-duplicate h1–h6 so each page has one clean outline.
  • Set titles & meta — template titles and descriptions from on-page values like .
  • Inject structured data — add ld+json Article, Product, FAQ, or Breadcrumb schema to matched pages.

Targeted by regex

Every rule is scoped to a URL pattern, so a transform applied to ^/guides/.* never touches the checkout. Preview the match set, publish, and roll back instantly if needed.

Response · in flight● rewriting live
As your origin serves it<div class="post-wrap-legacy">
<h2>Page title</h2> · no schema
⟱ transform match("^/guides/.*") ⟱
As Google & the visitor receive it<article itemtype="Article">
<h1>Page title</h1> · +ld+json

Ship the on-page fixes today.

Combine transforms with URL aliases to restructure paths and markup together.