Adding a New Attribute

Attributes are automatically mapped from analytics data and among them, you’ll find attributes like, a device type, campaign name, country, and more. Yet, if you want to create a custom attribute, you can do it manually in Audience Manager or import attributes from a CSV file. In this article, we’ll show you how to add an attribute manually.

Before you start

Here are some things to know before you begin adding new attributes:

  • You can use text or numeric type of an attribute.
  • By default, attributes can’t be accessed via public API and if you want to make it accessible, change settings for API access while creating an attribute.
  • Once you create an attribute, you can use it to create an audience.

Create a custom attribute

To create a new attribute, follow these steps:

  1. Go to Menu > Audience Manager.
  2. Navigate to Attributes.
  3. Click Create new attribute.
  4. Name the attribute and choose the type: text or numeric.
  5. If you want to grant Public API access for this attribute, toggle Access this attribute via public API.

At this point, the attribute is ready and you can track data for it using:

Map a custom event to track data

One of the ways to collect data for attributes is by mapping a custom event.

To map a custom event, follow these steps:

  1. Go to Menu > Audience Manager.
  2. Navigate to Attributes.
  3. Pick an attribute you want to work with.
  4. Toggle Set value with analytics custom events.
  5. Filter custom events by setting the value for a category, action, or name. For example, action equals 85% scroll, where 85% scroll is the event action captured by a custom event in Analytics.
  6. Set a value for an attribute.
  7. When done, click Save.
Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!