Forum

Thread tagged as: Configuration, Addons, MailChimp

Mailchimp App: List import works, but not campaigns or webhooks

Hello,

I've just installed the Mailchimp app and added the API key and List ID. Perch (on a live site) correctly downloads the list, but hangs trying to import the (one) campaign in the account. Also, when I go to "web hooks", it hangs and doesn't configure.

Am I missing a server dependency? I have PHP cURL installed.

Thanks,

Paul

Paul Wright

Paul Wright 0 points

  • 5 years ago

Update.

I reran everything tonight and the campaigns downloaded...the entire "import" step works fine.

On trying to set up the web hooks, I got:

Error setting up Subscribe webhook — We couldn't verify the URL is working. Please double check and try again. HTTP Code: 301 Error setting up Unsubscribe webhook — We couldn't verify the URL is working. Please double check and try again. HTTP Code: 301 Error setting up Email Address Change webhook — We couldn't verify the URL is working. Please double check and try again. HTTP Code: 301 Error setting up Campaign webhook — We couldn't verify the URL is working. Please double check and try again. HTTP Code: 301

Is there a config step inside Mailchimp i'm missing?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Looks like the URL you're setting for the web hook results in a 301. Check things like trailing slashes.

Is this the /mailchimp/campaign.php?s={campaignSlug} setting in the Settings page?

One thing I've noticed is that now, even though the import step moved past the "Campaigns" installation during import, no campaigns appear under the "Campaigns" tab. I'm assuming this would need to be imported from Mailchimp and appearing here for the web hooks to work?

Or maybe the URL I'm supposed to be setting is in a completely different place? I missed the reference to this in the installation docs if it's there.

Is it correct that the URL it's asking for is the /mailchimp/campaign.php?s={campaignSlug} setting in the Settings page? Or should I be looking somewhere else for this? Without a campaign getting imported, this URL will fail, correct? Is that what I'm seeing?

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, this is the web hook URL. What URL do you have set at MailChimp for the web hooks?

I've tried:

https://[siteURL]
https://[siteURL]/
https://[siteURL]/mailchimp
https://[siteURL]/mailchimp/
https://[siteURL]/mailchimp/subscribe.php
https://[siteURL]/mailchimp/campaign.php

Where siteURL is my live site

Drew McLellan

Drew McLellan 2638 points
Perch Support

Could you post your extended diagnostics?

Drew McLellan

Drew McLellan 2638 points
Perch Support

It's the redirect to HTTPS that's killing it. It looks like the MailChimp app presumes HTTP.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Try MailChimp 2.0.2 and see if that helps.

Thanks, yes it completes now and the URLs for the different endpoints appear over at Mailchimp.

I reran the import and then configured web hooks.

The one campaign shown in Mailchimp does not appear in the client's website under "campaigns" though - is that a sign of anything? I don't think it's required for the client, but just want to make sure I have everything configured properly.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm not sure, to be honest. MailChimp has retired the v2 API this app uses, so we're going to have to do a major overhaul of it soon - I'm just trying to figure out when I'm going to fit it in.

Cool, thanks for the update. All I need is to be able to sync the lists, so I believe I'm all good for now.