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:
Number of emails sent; bounces, abuse reports, unsubscribes.
Opens and clicks (if they are being tracked).
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).
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 aMailchimpCampaign
object.The
MailchimpCampaign
class encapsulates information about a campaign retrieved from the API methodclient.campaigns.get
. It should have a methodget_report
that returns campaign metrics from the API methodclient.reports.get_campaign_report
(only for campaigns that have been sent).