Lloyd England
Lloyd England

Reputation: 51

Change the MailChimp source from API - Generic

I can't find the answer to this anywhere, if it's even possible.

I've got a PHP script to connect a few web forms to MailChimp using their v3.0 API. Currently, when the form is used, under the 'Source' column next to the new record it says: "API - Generic".

Is there a way to change this, so I can make it say something else?

Cheers, Lloyd

Upvotes: 3

Views: 3320

Answers (2)

FullStack Alex
FullStack Alex

Reputation: 2093

You could also use custom merge / audience fields to distinguish between forms/sources. That's at least what I am doing.

https://developer.mailchimp.com/documentation/mailchimp/reference/lists/merge-fields/

Upvotes: 0

Stu
Stu

Reputation: 531

The only way to control the "Source" listed in MailChimp's Contact table, profiles, and segmentation, is to use a key provided by using their "Registered app" option.

Setup found in account at:

  1. Login
  2. Drop-down top right
  3. Select "Account"
  4. on the "Extras" drop-down select "Registered Apps"
  5. Register an App button.
  6. Name it what you want source to be.
  7. Use below PHP oauth flow to get API key unique to this app and use it in your script.
  8. Done

If this is done the "Source" will display as the name you provide when establishing the app.

This process essentially hands you back an API key after Oauth so beyond making used of that key in your script no other code changes should be required

Link to their API docs with a bit more info:

Sample PHP app that will return the API key for your registered app:

Upvotes: 2

Related Questions