Skip to content

docs: clarify Open Rate formulas for Prefetched Opens toggle#835

Draft
danielfsousa wants to merge 1 commit into
mainfrom
docs/open-rate-prefetched-variants
Draft

docs: clarify Open Rate formulas for Prefetched Opens toggle#835
danielfsousa wants to merge 1 commit into
mainfrom
docs/open-rate-prefetched-variants

Conversation

@danielfsousa
Copy link
Copy Markdown
Contributor

Summary

  • Split the Enterprise Open Rate row in enterprise-metrics-definitions.md into two rows matching the UI's Prefetched Opens toggle, so the documented formula matches what the Analytics Report actually renders:
    • Include Prefetched OpensUnique Confirmed Opens / Accepted
    • Exclude Prefetched OpensUnique Confirmed Non-prefetch Opens / (Accepted − Prefetched-only Openers), where Prefetched-only Openers = Unique Confirmed Opens − Unique Confirmed Non-prefetch Opens
  • Added a missing API metric row for count_nonprefetched_unique_confirmed_opened ("Unique Confirmed Non-prefetch Opens") since it is referenced by the new formula and was not previously listed.
  • Bumped lastUpdated to today.

Why

A customer (ICA Banken / Subaccount 10) reported that the displayed "Open Rate" for "Exclude Prefetched Opens" didn't match the formula in our public docs. The doc previously stated Non-prefetch Opens / Accepted (simple ratio), but the deployed UI (@sparkpost/report-builder@v0.5.4) computes the adjusted-denominator form. With the customer's numbers the two differ meaningfully (~21.5% vs ~31.4%). Updating the doc to reflect actual production behavior so support answers stay grounded.

Caveats

  • The report-builder repo has two fix: commits (33652a8, 151d40a) on a 0.7.x beta tag that switch the metric back to the simple Non-prefetch Opens / Accepted formula. If/when those ship in a stable release and 2web2ui bumps its pin, the Exclude Prefetched Opens row here will need to be reverted to the simpler form. Worth coordinating with whoever owns that release.
  • Basic-account doc (sp-metrics-definitions.md) intentionally left untouched — basic accounts don't expose count_nonprefetched_unique_confirmed_opened so the existing single-formula row is internally consistent.

Test plan

  • Preview the rendered doc and confirm the two new table rows display cleanly (the formula in the second row is long).
  • Confirm the new API metric row sits in the right spot next to the other Confirmed Opens metrics.
  • Confirm lastUpdated is rendered as expected if any badge/widget uses it.

Split the Enterprise "Open Rate" definition into two rows matching the
"Include Prefetched Opens" / "Exclude Prefetched Opens" toggle in the
Analytics Report UI, so the documented formula matches what the UI
actually computes. Also adds the `count_nonprefetched_unique_confirmed_opened`
API metric (referenced by the new formula) to the API metrics table.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for support-docs ready!

Name Link
🔨 Latest commit a0d92be
🔍 Latest deploy log https://app.netlify.com/projects/support-docs/deploys/6a03789541d9a00008f5b474
😎 Deploy Preview https://deploy-preview-835--support-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant