Skip to the work

The New York Sun: subscription sources

About the project Skip to the demo

Unknown subscription sources cut from over 90% to about 7%.

nysun.comThe New York Sun, opens in a new tab

The New York Sun, a New York news publication, couldn’t see where most new subscribers came from after a checkout change. I rebuilt its subscriber report in Snowflake SQL from Stripe data.

Result The fix restored marketing reporting for the publication’s finance team.

Run the rebuilt report and watch each subscription find its source.Sample

Automatic Old report: a checkout update moved the source to a new name, so most subscriptions land in Unknown.

Old report90%+source unknown

Unknown
Email
Search
Social
Direct
Partner

Each dot is one new subscription.

Why sources went missing. A checkout update saved each subscriber’s source under a new name. The old report never looked there. The rebuilt report reads both names.

Analytics work, not AI: eight rewrites of the SQL, the code that reads the payment records.

How it was built

What The Sun got

  • Over 90% to about 7% unknown. The conservative March result, after a checkout change broke source reporting.
  • Useful marketing reports again. The finance team could trace subscriptions to their sources.
  • No AI needed. SQL repaired the report. Missing evidence stayed missing.

How I built it

  1. Trace the missing sources

    A checkout change renamed the fields in Stripe. The report still looked for the old names.

  2. Read both formats

    I rewrote the Snowflake SQL to read old and new names. It also checks source tags inside saved URLs.

  3. Recover what is there

    The query checks the offer page and the customer’s signup source when campaign tags are missing. It leaves records with no evidence unknown.

  4. Check, rewrite and restore the report

    Eight rewrites corrected the matching rules, and the report kept the dashboard’s columns. The conservative March result was about 7% with no known source.

Tools

Snowflake SQL, Stripe metadata, Equals.