MailChimp merge_vars what else is accepted apart from FNAME & LNAME?

前端 未结 1 1246
难免孤独
难免孤独 2021-02-07 15:42

I have implemented a very basic sign up using email address+name, although I would now like to add extra data such as Phone Number, Website etc.

My question is where in

1条回答
  •  南笙
    南笙 (楼主)
    2021-02-07 16:33

    In your list settings you'll find "List Fields and *|MERGE|* Tags". You can add here whatever you want !

    You can also add "merge vars" programmatically via the api :

    • listMergeVarAdd
    • listMergeVarDel
    • listMergeVarUpdate

    When you add a user in this list via listSubscribe, just use the merge vars as you would do with FNAME

    $merge_vars = array(
         'FNAME' => $fname,
         'LNAME' => $lname,
         'PHONE' => '010203040506',
         'OTHERCUSTOM' => 'custom field'
    );
    

    If you need to update user information, just turn update_existing flag to true.

    0 讨论(0)
提交回复
热议问题