An attribute allows you to permanently store data. It might be a "score" or "health" or "damage" or "number of check-ins" or "number of votes" and so on.
There are 2 types of attributes:
- Core Attributes are defined by Conducttr itself and cannot be modified. These are things like the audience's "First Name" and "Last Name".
- Custom Attributes are those you can create yourself through the Attributes panel.
There are also "Variables", which store data temporarily, only during the course of processing the given trigger.
On this page, we will be focusing on Custom Attributes and referring to them simply as attributes.
When you're creating an experience, you, the author, decide which Conducttr entities need to store certain data. For example, if you want to award players points for checking in to a location, then it’s the audience that needs an attribute to store the points. If you're going to count the number of check-ins at a location, then it's a location touchpoint that needs to store that number in an attribute.
Attributes are created and deleted via the attributes panel - as shown below. To create an attribute, you must first select the entity that's associated with the data you plan to save.
The image below shows an Attribute configured for Content:
Name- this is the attribute name to be used in Change actions and smartwordsDescription- your explanation of the attribute and how it's usedData Type- this is the type of data you're going to save. For example, if you want to save a whole number (e.g. no numbers behind the decimal point) then select Integer.
Examine attribute value
To examine the currently stored values for an attribute, look in the attributes tab of the entity that's holding the attribute.