INN / umbrella-aspenj

umbrella repository for aspenjournalism.org
GNU General Public License v2.0
0 stars 1 forks source link

Create MailChimp newsletter for Link Roundups #6

Open MirandaEcho opened 4 years ago

MirandaEcho commented 4 years ago
joshdarby commented 4 years ago

Create campaign, audiences, & basic template in MailChimp for daily link roundup for his "Bucket" section of the site

Mailchimp is yelling at me that they've hit their allotted number of audiences allowed for their plan (5).

joshdarby commented 4 years ago

basic template in MailChimp for daily link roundup for his "Bucket" section of the site

@MirandaEcho Do we know...

joshdarby commented 4 years ago

Update signup form to include checkboxes for daily roundup, weekly stories, and monthly updates

Do we know which list/audience is for monthly updates?

joshdarby commented 4 years ago

Based on https://github.com/INN/link-roundups/blob/master/docs/mailchimp.md, it looks like we'll need to make sure he knows that he will need to create actual roundup posts as opposed to just saving links.

Currently there are 11,xxx saved links but 0 roundups.

joshdarby commented 4 years ago

I think this is ready for testing by us/him.

I have:

joshdarby commented 4 years ago

Campaign in MC: https://us5.admin.mailchimp.com/campaigns/edit?id=3858541

@benlk Since this will be automated via Link Roundups, does this need to be an RSS email campaign in MC or just a regular email campaign?

benlk commented 4 years ago

I think it's a regular campaign, but I may be wrong. Either way, we should document that in Link Roundups.

joshdarby commented 4 years ago

@MirandaEcho Update on this since we're at about time:

Everything is configured. However, Link Roundups isn't populating the automated Mailchimp email the way it should be.

@benlk and I took a few minutes after Scrum to discuss it but can't find an obvious error/issue with it so far. Exporting the logs from Flywheel didn't prove to be helpful and WP Debug isn't showing any issues either.

joshdarby commented 4 years ago

Spoke with Mailchimp support and they mentioned the most likely reason this isn't working is because LR is using V2 of their API which is no longer supported/maintained 😬

joshdarby commented 4 years ago

Now that this magically works:

@MirandaEcho Do we want to modify anything on the template, like order of items displayed or anything like that?

Screen Shot 2020-04-22 at 12 09 19 PM

joshdarby commented 4 years ago
joshdarby commented 4 years ago

So I have the automated email all set up in Mailchimp and it seems to be working as expected. However, quick question for @benlk:

I found this in their docs:

We pull in the date for any of these tags, in this order: 'pubDate', 'pubdate', 'published', 'created', 'updated', 'date.' If you set your campaign to daily, it will send posts from the last 24 hours before it was triggered;

Do you think we'd be better off removing the whole time conditional from the feed and just let Mailchimp handle it? Seems like that would be more future proof in case any of the timezone settings in WP or the server side get messed with.

benlk commented 4 years ago

Yes, that would be more future-proof. But if we're doing that, we should remove the -1 loading of all saved links, and instead replace it with a smaller number, like 100.