> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-user-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Behavior Analysis

# Step 1: Define Events

An event refers to any action a user performs on your app that is tracked. You can add up to 10 events simultaneously.

<img src="https://mintcdn.com/moengage-user-guide/JaITHs2ICP4brhLx/images/moengage_a50392.png?fit=max&auto=format&n=JaITHs2ICP4brhLx&q=85&s=c9849c475b7d6a33a97059b9b6c3a34a" alt="Screenshot 2025-01-02 at 12.43.32 PM.png" width="3122" height="522" data-path="images/moengage_a50392.png" />

Each event can be further filtered using **+ Attributes**. Add event filters for specific actions performed by users such as Platform, App Version, and so on.

<img src="https://mintcdn.com/moengage-user-guide/dQRIDUQKJ6sJ-GxT/images/moengage_2e166d.png?s=d988854647d19b97588721d988dbe486" alt="2025-01-02_12-48-01 (1).gif" width="1584" height="592" data-path="images/moengage_2e166d.png" />

Use **+ Attributes** again and combine multiple attributes using **AND**/**OR** for each event. For example, use the **OR** filter to combine data across two platforms. If you want to get data for a specific platform and look at the visits to a specific website, use the **AND** filter.

<img src="https://mintcdn.com/moengage-user-guide/ZZAtOVArgeY6XkCI/images/moengage_8052dc.png?s=5cbc64f1ceedd94ce8c0f750e388dd0e" alt="2025-01-02_12-54-33 (1).gif" width="1584" height="594" data-path="images/moengage_8052dc.png" />

With **Split by**, you can compare the data using a specific attribute. To compare, click **+ Split By** and select the attribute from the list with which you wish to compare. You can add a maximum of 10 attributes. For example, to obtain a chart for the number of songs played across different platforms. Select *product\_viewed* as the event and select *Platform* in the **Split By** list.

<img src="https://mintcdn.com/moengage-user-guide/V7vjAvRldhpYJVGL/images/moengage_dc1a67.png?fit=max&auto=format&n=V7vjAvRldhpYJVGL&q=85&s=f141cb02edec1a8eaeb688c1e718ca29" alt="Screenshot 2025-01-02 at 1.09.29 PM.png" width="3112" height="622" data-path="images/moengage_dc1a67.png" />

You can add a maximum of 10 events to your behavior chart using **+ Add Event**.

# Step 2: Filter Users

By default, you can perform behavior analysis on all users. However, you can also query for a group of users filtered using User Properties, User Activity, User Affinity, or Custom Segments. Filtering users is similar to creating a segment. For more information, refer to [Create Segment](/user-guide/segment/segment-operations/create-segments).

<img src="https://mintcdn.com/moengage-user-guide/Nc7DGgqNAva2wV7W/images/moengage_6b5fa8.png?s=3434a48cf98047c2aabf120cc7ede2d3" alt="2025-01-02_13-25-45 (1).gif" width="1576" height="614" data-path="images/moengage_6b5fa8.png" />

# Step 3: Choose an Analysis Option

After defining your events, you can choose how to calculate the data. The following options are available:

<img alt="Screenshot 2025-01-02 at 5.19.16 PM.png" src="https://mintcdn.com/moengage-user-guide/Kch8a9R_vRsrkgut/images/moengage_706710.png?fit=max&auto=format&n=Kch8a9R_vRsrkgut&q=85&s=440c432b33d14723c491eed6f4d5acc8" style={{ width:"41%" }} width="544" height="418" data-path="images/moengage_706710.png" />

* **Total events**: This option provides the total count of selected actions or events performed by the user.
* **Unique users**: This option provides the number of distinct users who have completed the selected event.
* **Total events per user**: This option provides an aggregated count of the total events per individual user. For example, you can get the average number of songs played per user. The aggregation types available are shown below:

  <img src="https://mintcdn.com/moengage-user-guide/zi8OFpJJZ8wcpIWO/images/moengage_2b6da4.png?fit=max&auto=format&n=zi8OFpJJZ8wcpIWO&q=85&s=85c0b3c3b6efee3fcbd62dc98bb14789" alt="2025-01-02_18-04-36.png" width="3176" height="882" data-path="images/moengage_2b6da4.png" />
* **Unique sessions**: This option provides the total number of unique sessions in which the selected event was performed.
* **Aggregation**: This option aggregates the count of the selected event or action. The supported aggregation functions are sum, minimum, maximum, average, median, percentile, and distinct count. The aggregation option is available only for numerical attributes.

  <img src="https://mintcdn.com/moengage-user-guide/1256q5A_-a3uPvvh/images/moengage_183b19.png?s=81cf16d453e6f2d5c8d86bd9dc304cbf" alt="2025-01-02_17-37-39 (1).gif" width="1584" height="382" data-path="images/moengage_183b19.png" />

  You can aggregate attributes of an event. These attributes are available in the list after selecting your aggregate function type. The available attributes depend on the defined events at the beginning of the analysis.

For more information on advanced Behavior options, refer to [Advanced](/user-guide/analyze/analytics/behavior/advanced-behavior-analysis).

# Step 4: Select the Comparison and the Duration

In addition to the ability to split an event by attributes, you can also compare all selected events based on common user attributes using the **Compare by** option on the **Behavior Options** tab. For example, you can compare the number of successful orders placed by users of different subscription tiers.

<img src="https://mintcdn.com/moengage-user-guide/ziRUAeeja7fRRL-D/images/moengage_df4e4e.png?fit=max&auto=format&n=ziRUAeeja7fRRL-D&q=85&s=7fd519f19e229c80051dec84cf3f84f6" alt="Screenshot 2025-01-03 at 12.08.46 PM.png" width="3114" height="252" data-path="images/moengage_df4e4e.png" />

You can select a maximum of 10 attributes, including the **Split by** attributes.\
After choosing the *Compare by* attributes, specify the duration of the analysis.

<img alt="Screenshot 2025-06-16 at 3.41.28 PM.png" src="https://mintcdn.com/moengage-user-guide/dQRIDUQKJ6sJ-GxT/images/moengage_2f477c.png?fit=max&auto=format&n=dQRIDUQKJ6sJ-GxT&q=85&s=eb4417d8c2e9306a70b3d79c2bd8db5d" style={{ width:"40%" }} width="624" height="622" data-path="images/moengage_2f477c.png" />

# Step 5: Choose Charts

After your query is generated, choose your preferred visualization type. You can change between Line, Area, Bar, Column, and Pie charts. Every chart has its own significance.

* Line charts are widely used for analyzing data trends, changes, or patterns. They are frequently used to display and compare data over time.

  <img src="https://mintcdn.com/moengage-user-guide/rPF7FADU4hlGh6lI/images/moengage_1fc408.png?fit=max&auto=format&n=rPF7FADU4hlGh6lI&q=85&s=10c8a8c1496349fc1b718d62b6509e6c" alt="Screenshot 2025-01-03 at 12.29.51 PM.png" width="3132" height="1218" data-path="images/moengage_1fc408.png" />

  Line charts can be viewed in the following ways:

  <img alt="LineChart_LiLoCum.png" src="https://mintcdn.com/moengage-user-guide/o-R_Ot8gzngW4Fxh/images/moengage_a2999d.png?fit=max&auto=format&n=o-R_Ot8gzngW4Fxh&q=85&s=f85a4c4ba09872fe62e94daa22b7730d" style={{ width:"25%" }} width="284" height="264" data-path="images/moengage_a2999d.png" />

  * **Linear**: The chart displays data with a continuous line.
  * **Logarithmic**: The chart scales the values on the Y-axis to logarithmic values.
  * **Cumulative**: The chart will accumulate all values up to the most recent period shown in the chart.
* Area charts combine a line chart and a bar chart to show how data changes over time. These charts show how one or more groups' numeric values change over time. They are often used to show trends in data, such as the growth of revenue.

  <img src="https://mintcdn.com/moengage-user-guide/4venoFKsDzNYAMsx/images/moengage_997a25.png?fit=max&auto=format&n=4venoFKsDzNYAMsx&q=85&s=0aae5b03ee52c917560d79cd75aaa871" alt="Screenshot 2025-01-03 at 12.51.06 PM.png" width="3122" height="1198" data-path="images/moengage_997a25.png" />
* A bar or column chart is a graph used to compare different measures across various data categories or series.

  <Tabs>
    <Tab title="Column Chart">
      <img src="https://mintcdn.com/moengage-user-guide/dQRIDUQKJ6sJ-GxT/images/moengage_2e2565.png?fit=max&auto=format&n=dQRIDUQKJ6sJ-GxT&q=85&s=3372dcb26902edbf5ad88eb1a5ccf136" alt="Screenshot 2025-01-03 at 12.58.53 PM.png" width="3122" height="1176" data-path="images/moengage_2e2565.png" />
    </Tab>

    <Tab title="Bar Chart">
      <img src="https://mintcdn.com/moengage-user-guide/9ZDoUAfIV0lDtmVh/images/moengage_52b8d6.png?fit=max&auto=format&n=9ZDoUAfIV0lDtmVh&q=85&s=61017faf6ac6ef7b38f83c17823bb229" alt="Screenshot 2025-01-03 at 12.59.43 PM.png" width="3126" height="1176" data-path="images/moengage_52b8d6.png" />
    </Tab>
  </Tabs>
* Pie charts are commonly used to visualize categorical data that can be divided into distinct parts. They display the relative proportions or contributions of various categories within a whole.

  <img src="https://mintcdn.com/moengage-user-guide/g5z_bz8PEWXqJHJ6/images/moengage_9b6f63.png?fit=max&auto=format&n=g5z_bz8PEWXqJHJ6&q=85&s=13af500680c9c0e0cb917b9da8c7d4cc" alt="Screenshot 2025-01-03 at 1.00.54 PM.png" width="3126" height="1182" data-path="images/moengage_9b6f63.png" />

Line, area, column, and bar charts are scaled relative to percentages using an absolute number or a percentage. You can switch between numerical and percentage views for line, area, bar, and column charts.

<img src="https://mintcdn.com/moengage-user-guide/0O_bXa3mWpWRhLiI/images/moengage_ee7323.png?fit=max&auto=format&n=0O_bXa3mWpWRhLiI&q=85&s=523cdb652bfdf50513801bf631824b50" alt="AbsolutePercentage.png" style={{ width:"20%" }} width="240" height="83" data-path="images/moengage_ee7323.png" />

### Granularity

You can also break down the report into Hourly, Daily, Weekly, or Monthly granularities for easy visualization. Based on the granularity you select, unique users will be displayed.

<img src="https://mintcdn.com/moengage-user-guide/mD6Zisl79KVUTNL4/images/moengage_cb8700.png?fit=max&auto=format&n=mD6Zisl79KVUTNL4&q=85&s=8cbcd493b11f942ca7299a069626db16" alt="gran.png" style={{ width:"45%" }} width="486" height="82" data-path="images/moengage_cb8700.png" />

<img src="https://mintcdn.com/moengage-user-guide/2_RVsiG3-M8LaX3k/images/moengage_c59f73.png?s=cd67b3223f30bc16b6cb6e98be5cb2c6" alt="Behavior chart 2.gif" width="1206" height="600" data-path="images/moengage_c59f73.png" />

### Compare to Past

This will allow you to compare the current chart with past trends during behavior analysis. You can compare any data point over a period of time with the corresponding data point from the previous period.

<img src="https://mintcdn.com/moengage-user-guide/EBKc9Ylp_fnUkuBK/images/moengage_8c7bad.png?s=dec3e11c8103ccb82de1e488c430cb3c" alt="2025-01-03_13-17-17 (1).gif" width="1558" height="600" data-path="images/moengage_8c7bad.png" />

You can compare the chart for the following periods:

* Previous Day
* Previous Week
* Previous Month
* Previous Quarter
* Previous Year
* Custom Range

# Step 6: Tables

In addition to charts, the data is also available for analysis in a tabular format. You can sort the table or change its view using the transpose feature. Additionally, you can download the data in CSV format. For more information, refer [here](/user-guide/analyze/analytics/getting-started-with-analytics/overview).

Note that the analysis will only display 10,000 rows in the table. You can only see 10,000 rows on the dashboard and after exporting the data to CSV.

# Save to My Studio or Custom Dashboard

Your analysis is now ready. To access this later, you can save the analysis.

To save:

1. Click the <Icon icon="floppy-disk" size={32} /> icon in the upper-right corner and click **Save to My Studio.**
2. Additionally, you can save the analysis to a custom dashboard. Choose the required option from the list.

   <img src="https://mintcdn.com/moengage-user-guide/w89gcvhxT1w_pzZQ/images/moengage_463cad.png?fit=max&auto=format&n=w89gcvhxT1w_pzZQ&q=85&s=c54b2d1df04b5f49abc1ba8adecb1dad" alt="Screenshot 2025-01-06 at 3.35.49 PM.png" style={{ width:"31%" }} width="410" height="118" data-path="images/moengage_463cad.png" />
3. Select the dashboard where you want to save the analysis. You can choose an existing dashboard or create a new one.

   <img src="https://mintcdn.com/moengage-user-guide/RFCZY_YJ3dCN1QG7/images/moengage_f3c0f8.png?fit=max&auto=format&n=RFCZY_YJ3dCN1QG7&q=85&s=0c15a72ccf2ebadf168cf11aa6ca015b" alt="Screenshot 2025-01-06 at 3.39.23 PM.png" style={{ width:"55%" }} width="784" height="952" data-path="images/moengage_f3c0f8.png" />
4. Enter a name for your analysis to help you identify.
5. Enter a brief description of the analysis.
6. Click **Save**.

You can access the analysis by navigating to **Analyze** > **My Studio**. To access the custom dashboard, navigate to **Dashboards**.

# Next Steps

* [Advanced](/user-guide/analyze/analytics/behavior/advanced-behavior-analysis)
* [My Studio](/user-guide/analyze/dashboards/my-studio)
