Skip to content

Opportunities: rank pages by business value against AI visibility — Google Analytics Phase 5 #719

Closed

Description

@gkhngyk

Problem

Phase 3 (#704) landed the data: what every landing page is worth across all sources, what AI sources brought it, and what sold. Nothing reads it yet.

The product can already say "you appear in 12% of answers". What it cannot say is which of those answers matter. A page that generates a seventh of all conversions and a page nobody has ever bought from are presented identically, and the customer is left to work out where to spend effort. That judgement is the whole point of connecting analytics.

This issue is the layer that turns the two datasets into a ranked, explained, trackable list — and it has two hard problems that have to be solved rather than assumed away.

The two problems worth stating up front

1. "Low AI visibility" is degenerate at scale, so it cannot be half of a rule on its own.

Measured on a live connected property: 30 days of tracking produced 78,170 distinct cited URLs, of which 366 were on the brand's own site. URL-level AI visibility therefore exists for a three-digit number of pages. On a site with 10,000 pages, ~9,600 score zero.

A rule of the form "high business value AND low AI visibility" then fires for essentially every valuable page, which reduces it to "your top revenue pages, sorted". That is an ordering, not a detection, and it makes the whole engine an expensive way to run ORDER BY revenue DESC.

The zero has to be split into meanings that differ:

  • no prompt covers this page's topic — a gap in what we track, and an actionable one
  • prompts cover it and we are not cited — a genuine visibility loss
  • prompts cover it, we are cited, but on other URLs — an internal cannibalisation signal

Only the middle two are "low visibility". The first is a coverage problem, and it is probably the most common and most useful finding on a large site.

2. Percentile scoring with a fixed threshold produces a constant fraction, not a variable count.

Percentile-based business value is the right instinct — a small B2B site and a large shop cannot share an absolute revenue threshold. But if the score is a within-site percentile and the cut-off is fixed, the number of opportunities is a roughly constant share of pages for every customer. "One customer has 7, another has 340" does not follow from that design; it needs absolute qualifiers too (a floor on sessions, on revenue, or on conversions) so that a site with genuinely little to fix produces genuinely few rows.

Without this the threshold is Top-N wearing a different name, and worse, an implicit one nobody can see.

Proposal

Three layers, with cost increasing and volume decreasing at each step.

Detection — deterministic, covers everything, no LLM. Per URL, from ga_page_stats and ga_ai_traffic_stats plus the citation and prompt data: sessions, engaged sessions, engagement rate, key events, transactions, revenue, revenue per session, trend, AI-sourced share, citation count, prompt coverage. Percentiles within the site for the relative half, absolute floors for the qualifying half. This runs over every URL every day and costs nothing but SQL.

Intelligence — only on what qualifies. Cluster before explaining: 250 product pages with one shared problem is one finding about a pattern, not 250 findings. An LLM explains the cluster and proposes actions; it never sees the full URL list. Re-enrichment only when an opportunity is new, changes materially, or crosses into a higher band.

Lifecycle — an opportunity is a thing with a history. Detected → active → acted on → validated → improved or resolved. Without this the customer sees the same list every morning and stops reading it. With it, the product can eventually answer the question that matters most: which actions actually moved visibility, and which did not.

Decisions to take before building

  • Relationship to content_opportunities. The product already has an "opportunity" concept with its own generator and surface. Two competing meanings of the word in one product is a real cost. Either this extends that model or the naming has to separate them cleanly — this should be settled first, not discovered later.
  • Never sum GA rows with ai_traffic_logs. The constraint from Integrations: sync AI-sourced traffic, conversions and revenue from GA4 — Google Analytics Phase 3 #704 carries forward: both count the same visits for brands running the tracking snippet. Whatever this surface shows, the two origins stay distinct.
  • Degrade gracefully on small numbers. AI-sourced sessions are a small share in absolute terms — single- to double-digit per source over 28 days on the property measured. Percentage-change framing on a base of four sessions is noise. Any per-page AI conversion rate needs a volume floor before it is shown at all, and some findings should simply not be offered until there is enough data to support them.
  • Where the ceiling shows. Integrations: sync AI-sourced traffic, conversions and revenue from GA4 — Google Analytics Phase 3 #704 keeps the top pages per day rather than every page. A site large enough to hit that ceiling has a long tail this engine never sees; that is the right trade, but the surface should not imply completeness it does not have.

Out of scope

Acceptance criteria

  • Every URL with analytics data is scored daily, deterministically, with no LLM in that path.
  • An opportunity records why it was raised, with the figures that raised it, and can be traced back to them.
  • "Low AI visibility" distinguishes not covered by any prompt from covered and not cited, and the two produce different findings with different suggested actions.
  • The number of opportunities varies with how much a site actually has to fix, not with how many pages it has.
  • Findings that would repeat across many similar pages are grouped, and the LLM is invoked per group rather than per URL.
  • An opportunity acted on can be followed to a verdict, and a resolved one stops reappearing.
  • Brands without an Analytics connection, and self-host installs without Composio credentials, are unaffected.

Related

Activity

  1. added
    enhancement
    ai visibility
    content
    ai traffic
    on Aug 13, 2026
  2. self-assigned this
    on Aug 13, 2026
  3. gkhngyk commented on Aug 25, 2026

    @gkhngyk
    ContributorAuthor

    Closing this: the detection and explanation layers are shipped, and the two that are not were left out on purpose rather than missed.

    What landed

    • feat(analytics): detect valuable pages AI engines send no traffic to #724 — detection. Per URL, per day, deterministic, no LLM: the ranking signal is chosen from what the property actually reports (revenue → transactions → key events → engagement) and stored on every finding, so no surface can call an engagement rank "your most valuable page". Qualifying needs a percentile and absolute floors, which is what stops the engine returning a constant fraction of every site.
    • feat(traffic): show the pages AI engines aren't sending traffic to #725 — the surface, on AI Traffic, worded in the signal the engine used.
    • feat(analytics): say why a valuable page gets no AI traffic #787 — why a page gets nothing: cited, targeted_not_cited, not_targeted, with the citation and targeting counts stored alongside. Measured on the connected property, 5 of 16 open findings turned out to be cited — one of them 104 times in 28 days — while the card had been telling all sixteen the same story. Two repairs travelled with it: the reads were un-paginated selects standing on PostgREST's 1000-row cap (the AI-traffic half truncating produces findings that are false, not merely missing), and path matching folded case, which turned a real slug into a URL that 404s.

    Against the acceptance criteria

    criterion
    every URL scored daily, deterministically, no LLM done
    a finding records why it was raised, traceable to the figures done
    "low AI visibility" separates not covered from covered and not cited partly — see below
    the count follows what a site has to fix, not how many pages it has done
    similar findings grouped, LLM invoked per group not built
    an opportunity acted on can be followed to a verdict half — resolved findings stop reappearing; there is no acted-on or validated state
    brands without Analytics, and self-host, unaffected done

    The third is partial in a specific way worth writing down: covered is decided from explicit prompt target URLs, not from whether a prompt covers the page's topic. Topical coverage is not something arithmetic can decide, and inventing it would put a made-up reason on a finding a customer is about to act on. The three states also produce different labels, not yet different suggested actions.

    Why the rest is not built

    Clustering exists to turn 250 near-identical findings into one. One property is connected today and it has 16 open findings — there is nothing to cluster, and an LLM explaining groups could not be judged against a second property to see whether its explanations were any good. The validated half of the lifecycle needs a finding to actually move, which is months of data on properties that do not exist yet.

    Building all three now would mean shipping code whose correctness nobody can check, which is the failure mode this issue itself warned about: a finding nobody can verify is worse than one that is merely narrow.

    When to revisit

    When several properties are connected — particularly one large enough that its findings repeat across similar pages — the remaining layers get their own scoped issue, with the clustering key and the enrichment budget decided against real distributions instead of guessed ones. That is a better issue than this one, and it can be picked up by anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai trafficai visibilitycontentenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions