Skip to main content
The headline number on every Visibility tile in the Profound app, plus the +1.0 pp badge beside it. Same call twice (current window and prior window of equal length) and diff the two scores.

How this example works

  1. Aggregate, not time-series. Omit date from dimensions; filter on asset_name. Response has one row with a single traffic-weighted score.
  2. Run the same call twice (once for the current window, once for the prior window of equal length), then subtract.
  3. Read positions from info.query.metrics. Don’t hardcode array indices.

Available metrics

Swap visibility_score for any of these to get a different KPI tile: For average_position, flip the delta’s color logic: a negative delta is an improvement.

Common follow-ups

Plot the same metric over time

Add date to dimensions to build a daily line chart.

Headline + daily series, together

Why the headline call and the chart call return different numbers.