unsubscribe-rate-check

Crystal command line tool and library. Give it a CSV of email campaigns (sent, unsubscribed, spam complaints) and it prints the unsubscribe rate and complaint rate of each and flags it ok, watch (above 80% of a limit) or over a limit. The limits are yours: --max-unsub and --max-complaints, in percent.

Part of the OneGTMLab free GTM tools. Background on the idea: email deliverability.

Install

shards build   # then ./bin/unsubscribe-rate-check

Use

CSV columns: campaign, sent, unsubscribed, complaints. Defaults are 0.5% unsubscribes and 0.1% complaints; set your own with --max-unsub and --max-complaints.

$ ./bin/unsubscribe-rate-check sample.csv
campaign                  sent   unsub  complaints  status
Q4 launch                 4200   0.21%      0.000%  ok
Webinar follow-up         1800   0.56%      0.167%  over
Cold outbound A           2600   1.00%      0.038%  over
Newsletter                9000   0.24%      0.022%  ok
limits: unsubscribes 0.50%, complaints 0.10%

Test

crystal spec

Offline, no network calls, no dependencies beyond the language runtime. MIT licensed.