Using attributes

phpList is pre-configured to deal with some data about your subscribers, for example, email address, the number of bounces (bouncecount), and their phpList ID number: these are called system values. Attributes are used for any other data you want to add to the system about your subscribers, usually demographic information. Some common attributes are Name, Age, Gender, and City.

Once you have collected/uploaded attribute data, it can be used to connect to your subscribers more directly and with better precision, by using placeholders and the segment plugin.

There are two ways to create attributes:

  • Create them in bulk when you import a csv file
  • Create them manually from the configure attributes page
  • Edit them from the configure attributes page

Creating Attributes when importing data

When you import complex data using the “CSV with additional data” method, attributes can be easily created (in bulk) from column titles that are not already listed as an attribute.

Do not create new attributes for email and other system attributes, you must map those to the pre-existing system attributes listed in the dropdown.

Once an attribute has been created, any column headed with the attribute name in future CSV files you import will be mapped to the attribute automatically. You will not need to create the attribute again.

If there is new data for a pre-existing subscriber, it will be integrated into the subscriber details by using the email address or Foreign Key as a reference.
 

Creating and editing attributes on the Configure attributes page

To create or edit an attribute manually, go to Config > Configure attributes from the main menu. 

From there you can create a new attribute:

 

You can also edit existing attributes:

Screenshot-from-2019-06-26-14-06-37.png

You can,

  • Specify/change the name
  • Choose/change the Type, which dictates the input method on your subscribe pages (see the example edit below)
  • Choose/change the Default Value, which dictates the standard value on the subscribe page (you may need to change this on the Subscribe page editor too)
  • Make the attribute required, so subscribers must give the information in order to sign up (warning: mandatory fields may deter subscribers)

Additionally, you may

  • tag them to delete one or more attributes
  • tag to merge several attributes together

Example edit 1: changing the type from text line to select 

In this example, we will change the Type of the attribute for ShoeSize, which was automatically created during a CSV file import, from textline to select. First we change the type to select using the dropdown menu, then we click the Save changes button at the bottom of the page.

Screenshot-from-2019-06-26-14-07-26.png

Then we click the edit values button which appears below the Type: dropdown. 

Screenshot-from-2019-06-28-13-41-27.png

We can then add all the shoe sizes we want.

If you are editing an attribute that already has data in the system, some values may already be listed: if you try to add these again phpList will skip them rather than create a duplicate, so you can simply list all the values you want rather than search through.

Screenshot-from-2019-06-26-14-10-36.png

You can change the order of the values for the attribute. This will affect the order in which they are listed in the dropdown on the subscribe page. In this example the shoe sizes had become jumbled because some were already in the system and some were not,  so we re-ordered them.

Screenshot-from-2019-06-26-14-10-57.png

By changing the order, the choice given to subscribers when they sign up is clearer.