> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/reference/projects/mutamad_analytics.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Mutamad Analytics

Google Analytics on a Mutamad site, held back until the visitor agrees, with a dashboard in Arabic.

{% hint style="info" %}
**Machine name:** `mutamad_analytics` · **Type:** Module · **In Mutamad:** In Mutamad, optional: applied when an entity needs it
{% endhint %}

Google Analytics on a Mutamad site, with [GA4 Dashboard](https://www.drupal.org/project/ga4_dashboard):

* the tag held back until the visitor agrees (Klaro)
* the Content Security Policy widened by Google's addresses only
* the dashboard as the Analytics tab of `/admin/dashboard`, for the site administrator
* the dashboard in Arabic, with the Kingdom's cities by their Arabic names

Not applied by default: sending visits to Google is a transfer of personal data outside the Kingdom (PDPL Art. 29), so an entity applies it once its data protection officer accepts it. A module with its recipe.

## Requirements

* Drupal 11.4
* [GA4 Dashboard](https://www.drupal.org/project/ga4_dashboard)
* [Mutamad Roles](https://www.drupal.org/project/mutamad_roles)
* [Dashboard](https://www.drupal.org/project/dashboard)
* [Klaro Cookie & Consent Manager](https://www.drupal.org/project/klaro)
* [Security Kit](https://www.drupal.org/project/seckit)

## Installation

Mutamad is in alpha. A site started from the [Mutamad project template](https://www.drupal.org/project/mutamad_project) is ready for it; on any other Drupal 11.4 site, allow alpha releases first:

```bash
composer config minimum-stability alpha
composer config prefer-stable true
```

```bash
composer require drupal/mutamad_analytics
drush recipe modules/contrib/mutamad_analytics
```

## Links

* [Project page on drupal.org](https://www.drupal.org/project/mutamad_analytics)
* [README](https://git.drupalcode.org/project/mutamad_analytics/-/blob/1.0.x/README.md): every setting, and why
* [Changelog](https://git.drupalcode.org/project/mutamad_analytics/-/blob/1.0.x/CHANGELOG.md)
* [Issue queue](https://www.drupal.org/project/issues/mutamad_analytics)
