# Data Activation

**A Data Activation is once-off activity** [**linked to data**](https://everyday-digital.gitbook.io/pathways-docs/pathway-editor/linked-data) **that can automatically establish fulfilment of an activity.** It is [linked](https://everyday-digital.gitbook.io/pathways-docs/pathway-editor/linked-data) to a [data collection that has been uploaded ](https://app.gitbook.com/s/xejXVFfr25ZS5cie02G7/#what-are-data-collections)in the [Data Manager](https://app.gitbook.com/o/-LkZMh7HTpHtgrDm7Uox/s/-LkZMvKQ0GKsnh74M3pT/data/data-manager). Data Activations can be used to determine when the next Pathway step is unlocked.

{% hint style="info" %}
**A** [**Data Tracking**](https://app.gitbook.com/o/-LkZMh7HTpHtgrDm7Uox/s/-LkZMvKQ0GKsnh74M3pT/data/data-driven-activities/data-tracking) **activity can be implemented for ongoing data tracking** that presents users with a goal ring on their app dashboard.
{% endhint %}

**Have a look at the sales target example activity, below.** In this scenario, the sales data (added as a [collection](https://app.gitbook.com/o/-LkZMh7HTpHtgrDm7Uox/s/-LkZMvKQ0GKsnh74M3pT/data/data-manager#data-collections) in [Data Manager](https://app.gitbook.com/o/-LkZMh7HTpHtgrDm7Uox/s/-LkZMvKQ0GKsnh74M3pT/data/data-manager)) has been created as a Data Activation.&#x20;

{% embed url="<https://cdn.falkor.io/uploads/2020/12/cloud-file-7098/d979b125411ec4b70ee9cd23fd772d75.mp4>" %}

**In the example above, the objective is to use data to track the sum total of all sales  made.** By setting a static target of 5 sales, each staff member who reaches 5 sales will automatically complete this activity (no direct action is required by the user). In our example, the user will unlock a reward once they reach the goal.

{% hint style="info" %}
**Remember:** data activations must be fulfilled in order to proceed on the Pathway. This means that the[ data linked](https://everyday-digital.gitbook.io/pathways-docs/pathway-editor/linked-data) to the activity must align with the target/goal that you set.
{% endhint %}

## How to create a Data Activation Activity

1. **Select the + icon to add a new activity.**
2. **Select Data Activation from the activity options.**
3. **Add a name and select an icon.**
4. **Set** [**Data Fulfilment Settings**](#data-checkpoint-setup-options)**.** Create and track a [data target ](https://app.gitbook.com/s/xejXVFfr25ZS5cie02G7/data-target-tracking)/ goal using preferred settings.
5. **Add a short snippet.** Write a short description of the activity that will be visible on the Pathway for Desktop and Tablet only. (max. 90 characters).
6. **Write a description.** Write a longer description of the activity (visible visible once a user selects the Pathway tile on Mobile, Desktop and Tablet).
7. **Attach a resource.** Choose a file (PDF, Audio, Image, or Video) from [Cloudfile](https://everyday-digital.gitbook.io/pathways-docs/pathway-editor/pathway-activities/broken-reference).
8. **Activity settings.** Data Activation activities are always required and the user must reach the specified goal.

### Data Activation Fulfillment Settings <a href="#data-checkpoint-setup-options" id="data-checkpoint-setup-options"></a>

**When you set up a Data Activation, adjust the available metrics to create your targets.**

| Option            | Description                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Collection**    | Select the data [collection](https://app.gitbook.com/o/-LkZMh7HTpHtgrDm7Uox/s/-LkZMvKQ0GKsnh74M3pT/data/data-manager#data-collections) you want to use (must be available in your [Data Manager](https://app.gitbook.com/o/-LkZMh7HTpHtgrDm7Uox/s/-LkZMvKQ0GKsnh74M3pT/data/data-manager)).                                                                                                                                 |
| **Goal Title**    | Name the activity (this will be visible to the user).                                                                                                                                                                                                                                                                                                                                                                       |
| **Data Formula**  | Select the formula you would like to apply to your data:Sum Total, Latest Daily Value, Latest Monthly Value, Latest Annual Value, Latest Value, or Average.                                                                                                                                                                                                                                                                 |
| **Data Column**   | Select the column (in your collection) that you are you wanting to pull values from.                                                                                                                                                                                                                                                                                                                                        |
| **Date Column**   | Select the column that contains dates/timestamp&#x73;**.**                                                                                                                                                                                                                                                                                                                                                                  |
| **Data Range**    | Choose timeframes within which your data should be considered for this activity. The goal will be reset based on the range you choose, e.g. for "Each Day", the goal resets each day.                                                                                                                                                                                                                                       |
| **Goal Type**     | <p><em>The type will affect your Goal Settings options.</em> You can choose a Static Goal or a Dynamic Goal.<br><strong>Static:</strong> provide a static number required to meet the goal.<br><strong>Dynamic:</strong> compare one column to another column, e.g. 80/100 sales for User A and 90/150 for User B. For dynamic goals, you will need a column in your data to define the variable goals (e.g. per user).</p> |
| **Goal Settings** | <p>If the Goal Type is set to Static Value, you will be able to enter a single static value (the target fulfilment value).</p><p></p><p>​If the Goal Type is set to Dynamic Value, you can assign a Target Column (the column you will use to reference the target values) and a Target Formula (formula applied to the data column).</p>                                                                                   |
