How to enable single opt-in with Mailchimp in Adobe Muse

Learn more about the How to enable single opt-in with Mailchimp in Adobe Muse Adobe Muse widget

Enabling single opt-in in the MailChimp widget will allow users to subscribe to your list without having to confirm their email. This post will explain how to enable single opt-in in Adobe Muse.

Table of contents

  1. What is single-opt in
  2. Getting started
    1. What you'll need
      1. How to find your API key
      2. How to find your List ID
  3. Step 1: Get the required files
    1. Generate mailchimp_j-26.php
    2. Download mailchimp_api.php
  4. Step 2: Upload your files
  5. Step 3: Test your form
  6. FAQ
    1. Will this work with Business Catalyst?
    2. I generated the php code but when I clicked Download File, nothing happened
    3. I exported my site to the browser but when I clicked submit, nothing happened
  7. Discussion

What is single-opt in

If you're reading this post (or you read the opening paragraph), you probably already know what single opt-in is. If you do, feel free to skip to getting started. For those that don't know what it is, single opt-in allows users to subscribe to your mailing list without having to confirm their subscription. MailChimp doesn't give you the option to do this without using their API because they believe that the double opt-in process is better for open rates and protects you from spam bots. For more information on this, check out their blog post.


Getting started

What you'll need

If you have your API key and List ID, skip to step 1.

How to find your API key

Start by opening the Account setting by clicking the drop-down in the top right corner:

Go to the Account settings in Mailchimp

Inside Account, click the Extras drop-down and click API Keys:

Click API keys in the Extras drop-down

Scroll down to Your API keys and click Create A Key:

Copy your MailChimp API key

Copy your MailChimp API key. You'll need it to generate your mailchimp_j-26.php file.

Create your MailChimp API key

How to find your List ID

Open the list that you're going to be working with. In the Settings drop-down, click List name and defaults.

Open settings and click List name and defaults

Copy your List ID. Again, you'll need it to generate your mailchimp_j-26.php file.

Open settings and click List name and defaults


Step 1: Get the required files

There are 2 files that are required for this to work:

  1. mailchimp_j-26.php
  2. mailchimp_api.php

Generate mailchimp_j-26.php

Once you have your list ID and API key, head to the mailchimp_j-26.php generator. Paste the code into the corresponding fields and click Generate Code:

View of the mailchimp_j-26.php file generator

Once the code has been generated, the Download File button will become available. Click it to download the mailchimp_j-26.php file.

Tip — If nothing happens when the Download File button is clicked, you'll need to copy the code and paste it into a text editor (e.g. Dreamweaver) and save the file as mailchimp_j-26.php.

Download mailchimp_api.php

This part is easy. Simply download the file.


Step 2: Upload your files

To use the single opt-in feature, open the Single Opt-In section, and enable single opt-in. Doing this will enable 2 places to upload your php files:

View of the Single Opt-In section of the Mailchimp widget

Once you've added the files to the widget, publish your website. This will not work in the Preview mode or by exporting the site to your browser. Make sure your site is live before you test it.


Step 3: Test your form

To test your form, you'll need to publish your website. If you Preview or export your site to the browser, nothing will happen.


FAQ

Will this work with Business Catalyst?

No. Business Catalyst does not support php.

I generated the php code but when I clicked Download File, nothing happened

This is likely because you are using a browser that does not support the ability to download generated text. You have 2 options:

  1. Generate the file inside Chrome or
  2. Copy the generated text, paste the text into a text editor, and then save the file as mailchimp_j-26.php

I exported my site to the browser but when I clicked submit, nothing happened

See step 3.

Discussion