An event contains some information, for example, user ID, App version, device model, region and language. These information are known as attributes.
MAS provides some preset common attributes. You can also customize some attributes applicable to the entire App based on your business requirements, and use them when configuring specific events.
Procedure
Log in to the mPaaS console and complete the following steps:
- From the navigation bar on the left, click Mobile Analysis Service > Custom analysis.
- On the right page, click Custom configuration.
- Switch to the Attribute tab and click New.
- In the New attribute window, complete the following configurations:
- Attribute ID: Required. For the relationship with client event tracking, see the descriptions in Android custom event tracking - extParam or iOS custom event tracking - extParam.
- Attribute name: Required, the name that corresponds to the attribute ID. You can customize the attribute name.
- Data type: Required, select the data type for the current attribute from the drop-down menu. The options include character, integer and float. For example, the data type of
os_version
is character.- In event analysis, you can count the number of deduplications of the
character
attribute and calculate the sum, average, maximum, or minimum of thefloat
and `integer ‘attributes. - For
float
orinteger
attributes, the data reported by the client will be converted accordingly.
- In event analysis, you can count the number of deduplications of the
- Unit: Optional, enter the unit of the attribute.
- Display status: To display the status of the attribute, ensure that Display status is set to On. By default, the status is displayed.
- Click OK to save the changes.
Results
On the Custom configuration > Attribute page, you can see the attribute that you created with the attribute information.