Skip to content

New Experiments: Analytics-aware content and amplification recommendations #338

@jeffpaul

Description

@jeffpaul

What problem does this address?

The plugin currently helps users generate and refine content in the editor. This experiment extends that value upstream, surfacing what to write before the editor is ever opened, and downstream, by acting on real-time signals after content is already published.

Let's look to add an experiment that integrates with popular analytics/stats plugins to surface two editorial recommendations driven by real search traffic data:

  1. Content Gap Suggestions: identify searches on-site that returned no results or low-engagement results, and recommend new post topics/drafts to fill those gaps.
  2. Traffic Amplification Prompts: detect posts experiencing a traffic spike and recommend social shares to maximize reach while momentum is live, perhaps focused first on posts that are older than a certain timeframe (assumption here being that they're not currently being promoted on social but otherwise currently relevant for some reason).

Ensure that any resulting new post topics/drafts and social shares require human review before any action is taken (e.g. publishing post, triggering social share). Probably also best to avoid sending stats data to AI providers where possible and only sending derived patterns or summaries in prompts.

I thought about opening these as two separate experiment issues, but they're so closely related that I decided on a single issue. So I'd be open to a PR that only handles one of these two experiments and splitting the work up if that's easier to get something out for review/testing.

What is your proposed solution?

Data Sources (via adapter pattern)

Connect to one or more installed analytics plugins (potentially through a Stats_Provider interface), starting with:

  • Jetpack Stats
  • MonsterInsights (Google Analytics)
  • Matomo
  • Site Kit by Google
  • Burst Statistics / Koko Analytics (lightweight options)

Fallback to WordPress's native search log if no analytics plugin is present.

Experiment 1: Content Gap Suggestions

  • Read site search queries from the connected stats provider
  • Filter for searches with zero or low-result engagement (e.g., no click-throughs, short dwell time)
  • Send anonymized query patterns to the AI to generate post title + brief outline recommendations
  • Surface in a new "Content Opportunities" dashboard widget (or admin notice?)

Experiment 2: Traffic Surge Amplification

  • Poll stats provider for posts with a configurable traffic spike threshold (e.g., 2× rolling 7-day average in the last 24 hours)
  • Prompt the AI to draft platform-appropriate social copy (Bluesky, Mastodon, LinkedIn, Facebook, X/Twitter, etc.) for those posts
  • Surface in the post list screen via an inline action or a dedicated "Trending Now" panel (noting I've not yet tried to identify various social share plugins, but could look to target those as well for integration)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Enhancement.

    Projects

    Status

    In discussion / Needs decision

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions