SEO Experimentation with Statsig

Learn how to run SEO experiments to test landing page designs and optimize organic traffic performance.

SEO experimentation tests changes to your web pages such as titles, metadata, structured data, or layout, to measure how they affect search rankings and organic traffic. Because search crawlers need a consistent version of each URL, randomize by page instead of by user. Statsig hashes each canonical URL into a control or test bucket, then compares metrics such as impressions, average position, and organic sessions across the two groups. Use it when you run a large, templated site and want proof that a page change moves organic traffic before you roll it out everywhere. If your change affects a shared system over time rather than individual pages, run a switchback test instead.

Select a deterministic page bucket

Crawlers must see a consistent version of each URL during the test window. You can't randomize by user. Instead, hash the canonical URL into buckets. In Statsig, add page_url as a custom unit ID:

  1. From Project Settings, go to Custom Unit IDs.
  2. Enter a name and description. The custom unit ID is immediately available to experiments, gates, and dynamic configs.

Statsig then deterministically hashes each page into control or test and keeps the assignment stable across sessions.

Strip the http or https scheme and any query parameters from page_url, so that Statsig hashes only the stable base URL.

Define metrics before shipping

An SEO test measures pages, not people, so every metric must roll up to the same page_url value that Statsig uses for assignment. Statsig joins metric data to exposures by unit ID, so a metric keyed on a user or session ID has nothing to match against a page-level assignment. Ranking signals arrive slowly and vary from week to week, so choose your primary metric and guardrails before launch rather than after you see results. That way, the decision rests on the metric you planned for, not on whichever metric happened to move.

Make sure the metrics you want to measure are in your data warehouse, keyed on page_url. Register them in Statsig's metric catalog. Because the same pipeline powers feature experiments, your existing CUPED or stratified-sampling settings apply automatically.

Example metrics

Implement the change behind an experiment

Each page's variant must depend only on its URL, so that crawlers and visitors get the same version every time they request that page. When you evaluate the experiment where you build the page HTML, in your template renderer or at the CDN edge, the variant is part of the initial response and crawlers see it without running JavaScript. A client-side swap after the page loads can show crawlers one version and visitors another, and search engines can treat that mismatch as cloaking. Limit the variant to the SEO change you're testing. If it also changes copy or offers, you can't tell which change moved organic traffic.

  1. Create an experiment in the Statsig console, for example seo_title_test.
  2. Target the custom unit ID page_url with a 50/50 split across control and test.
  3. Expose the variant in the template renderer or CDN edge function.

Ship, monitor, and decide

Search engines re-crawl and re-rank pages gradually, so an SEO test produces results more slowly than a user-level experiment. Early changes in impressions and average position come only from the pages that crawlers have already revisited, and rankings also shift from week to week for reasons unrelated to your change. Because each page counts as one unit, your sample size is the number of eligible pages rather than the number of visitors, so a site with few templated pages may not have enough power to detect a realistic effect. Plan the duration before launch, and decide only after the indexing signal levels off.

  1. Use power analysis to determine how long to run the experiment based on traffic volume.
  2. Expect first signals in 2 to 7 days. Wait for re-indexing to plateau before you treat results as stable.
  3. Merge the winner into your template and archive the test. Experiment summaries remain searchable after archival.

SEO-specific guardrails

Page-level changes worth testing

The strongest candidates are changes you can apply to many pages through a single template, so that each group holds enough pages to measure. Each theme in the following table changes one signal that search engines read, such as how a page matches a query, how crawlers find and index it, or how quickly it loads. Test one theme at a time. When a variant combines several changes, a positive result tells you that the bundle worked but not which change caused it.

Was this helpful?

For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

On this page