# Custom Aggregation For Analytics

{% hint style="info" %}
Custom Aggregation feature must be enabled for your app by Sentiance, before you can start using it. Please reach out to our support team to enable the feature.
{% endhint %}

Sentiance now support using custom defined tags for an App that will be used to aggregate the analytics shown in [Insights Control Tower](https://controltower.sentiance.com/).

{% hint style="info" %}
Other portals for Insights Control Tower are available for specific regions. For our US customers, please use [https://controltower.p15.sentiance.com](https://controltower.p15.sentiance.com/). For our Indian customers, please use [https://controltower.r16.sentiance.com](https://controltower.r16.sentiance.com/)
{% endhint %}

## Prerequisites

Before going ahead with app integration please reach out to the Sentiance Support team with following information.

* What are the exact tags required for your app.
  * eg:-  **Franchise -> Area -> Store**
* List of users in your organisations that would need Administrative Access to control how the Tags levels are displayed to your users in [Insights Control Tower](https://controltower.sentiance.com/).

{% hint style="info" %}
Sentiance support up to 6 tag levels at the moment.
{% endhint %}

## App Integration

When you want to initialise the Sentiance SDK with tagging support use the [SetTransportTags](https://docs.sentiance.com/important-topics/sdk/api-reference/android/eventtimeline/eventtimelineapi#settransporttags) method exposed in [EventTimeLineApi](https://docs.sentiance.com/important-topics/sdk/api-reference/android/eventtimeline/eventtimelineapi#eventtimeline-api).

This will tag all the trips that are synced to Sentiance Platform by the SDK for a particular user.

## Aggregated Data In Insights Control Tower(ICT)

Users with Administrative (Admin) access can now assign themself or their user who has access to Insights Control Tower with different tag/group Levels.&#x20;

&#x20;

<figure><img src="/files/qArjQG40pJQTYPHlPvlU" alt=""><figcaption></figcaption></figure>

### Group Assignment

<figure><img src="/files/DsQXQCcI4k4rujJUrdBa" alt=""><figcaption></figcaption></figure>

Full Access - This will grant the users with Full Access to all the groups/tags that contains for an App.

Specific Groups - This will provide the ability to only allow particular ICT user access assign group.&#x20;

### View Analytics Data

<figure><img src="/files/MYLgb2vA82pQGjTSKGeR" alt=""><figcaption></figcaption></figure>

In ICT now users will see a new filter to drill down and see the aggregation of different levels.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sentiance.com/important-topics/custom-aggregation-for-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
