In Amplitude, the default level of reporting is the individual user. What this means is that, unless you specify otherwise, your Amplitude charts and analyses are all based on data drawn from individual users.
Often, this is enough. But sometimes you need reports built around an aggregated unit of measurement. For example, accounts, order IDs, or charts.
The Amplitude Accounts add on enables you to do exactly this, by giving you analytical capabilities at the group level.
A group is an object that a set of users might belong to, such as a company of customers, a team of users, or a playlist with listeners. A group type defines the group, for example organization_id
, account_id
, playlist
, or company
. Groups can help you understand how specific accounts interact with your product, instead of just seeing the individual users in those companies.
This guide aims to help you plan your Accounts instrumentation and also offers guidance for using Amplitude Accounts with Segment and Salesforce.
Before you instrument groups, decide whether you should define event level or user level groups.
Multi-product companies who only want users events related to a specific product to be associated with a group.
Amplitude recommends taking the following approach for event level groups.
Tie users to a group at the time an event is sent. If users can leave groups or perform events without a group association occasionally, an event-level group is recommended.
Send events server-side to the HTTP V2 API or Batch API, or using an SDK.
The group association doesn't persist for the user. Pass it with each relevant event.
You want to associate all users who work for "Acme Company" are with a particular group.
Amplitude recommends taking the following approach for user level groups.
Tie users to a group with identify calls.
Send identify calls server-side to the Identify API or using an SDK.
Once set, the group association persists for the user forever. Users can't be removed from user-level groups.
Updates to groups aren't retroactive.
Set and update group properties with group identify calls.
Send group identify calls server-side to the Group Identify API or using an SDK.
Group properties persist for the group until they're explicitly updated or unset. Updates to group properties aren't retroactive.
Amplitude's Dynamic Group Properties feature turns your existing KPIs into dynamically updating group properties. Using this feature, you can add group properties such as "Last 7 Day Active Users" or "Monthly Active Users" to each group.
See Dynamic Group Properties for more details and full instructions for using this feature.
Historical data can't be retroactively updated so it's important that you test and validate your instrumentation before promoting to production.
Validate your test instrumentation using the Taxonomy & Data QA tab in the Accounts Implementation Workbook.
Group values must be unique and because of this are typically numeric. Amplitude recommends that you send a group property that's human-readable and clearly distinguishes the group from others so you can segment and group by this property in Amplitude.
Consider this example where an "Account Name" group property is sent. You can use the "Account Name" property for a human-readable version of the group value.
If you use the Salesforce integration, you can set and update group properties using both the integration and the Group Identify API.
Segment can also accommodate structuring groups at the event level vs. user level and the instrumentation approaches varies depending on your customers approach.
This content comes from Segment's documentation, and is high-level. See the Segment documentation for complete details on using Groups with Segment.
To use Amplitude’s groups with Segment, you must enable the following Action settings and make sure to include the data values they need to function. These settings act as a mapping from Segment group traits to Amplitude group types and values.
For event level groups, update your Track, Screen, and Page Call mappings in your Amplitude Destination to include the “Groups” key-value pair, for example group type - group value
). For user level groups, update your Identify Call mapping to include the “Groups” key-value pair. To send group properties, update the Group Identify User mapping.
See the Segment documentation for the Amplitude (Actions) Destination for full instructions.
This content comes from Segment's documentation, and is high-level. See the Segment documentation for complete details on using Groups with Segment.
To enable sending user level groups, customers using Segment must first configure group calls. If you have configured group calls, you must enable the following destination settings in Segment. These settings act as a mapping from Segment group traits to Amplitude group types and values.
For example, if you specified group_type
as the "Amplitude Group Type Trait", and name
as the "Amplitude Group Value Trait", then the example group call is structured as follows:
1analytics.group("082108b9-f41d-486g-9d2d-b5ab68bb3d5o", {2 group_type: "Organization",3 name: "ExampleCorp, LLC",4 employees: "20",5 email: "hello@example.com"6});
In the example, group properties are created for group_type
, name
, employees
, and email
.
If you don't provide "Amplitude Group Type/Value Trait", or one of the traits wasn't provided in your call:
You can also use Segment to set event-level groups. This means the group designation only applies for the specific event you are recording, and doesn't persist on the user. Groups get specified by providing an integration-specific groups
property with key-value pairs corresponding to the groupType
-groupValue
pairs you want to appear in Amplitude.
1analytics.track("Clicked Benefits Dropdown", { 2 dropdownColor: "blue"; 3}, 4{ 5 integrations: { 6 Amplitude: { 7 groups: { 8 onboarding_cohort: "Summer 2022" 9 }10 }11 }12});
Thanks for your feedback!
June 28th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.