wagtail / wagtail-newsletter

Send email newsletters based on Wagtail content
https://wagtail-newsletter.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Show campaign performance metrics #25

Closed mgax closed 1 week ago

mgax commented 1 month ago

Once a campaign is sent, the page author should be able to track campaign metrics (e.g. delivery rates, open/click rates).

In the page editor, on the Newsletter tab, if a campaign was sent, the page should hide the Save campaign button, display the campaign status, and some essential metrics:

To support this functionality, MailchimpCampaignBackend needs to implement a new method, get_campaign(campaign_id: str), which returns a MailchimpCampaign object.

The MailchimpCampaign class encapsulates information about a campaign retrieved from the API method client.campaigns.get. It should have a method get_report that returns campaign metrics from the API method client.reports.get_campaign_report (only for campaigns that have been sent).