---
title: "Campaigns (Matomo)"
description: "Matomo Referrers Campaigns"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.Referrers.Campaigns
original: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.Referrers.Campaigns
updated: 2026-11-10T15:13:36Z
license: https://documentation.invantive.eu/en/
---

# Campaigns: Matomo Matomo Referrers Campaigns

`read only` `REST`

- Catalog: `Matomo`
- Schema: `Referrers`
- Label: Matomo Referrers Campaigns

Can only retrieve data.

## Summary

Visits over one period broken down by tracked marketing campaign, one row per campaign/keyword combination.

## API Source

- Endpoint: `/index.php?module=API&method=Referrers.getCampaigns&idSite={id_site}&period={period}&date={date}&format=json`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Write rows per minute | 3,620 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `date` | `varchar2` | [x] |  | The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. |
| `id_site` | `number` | [x] |  | The Matomo site ID to report on. |
| `period` | `varchar2` | [x] |  | The reporting period: day, week, month, year or range. |

## Table Columns

The columns of the table `Campaigns` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `bounce_count` | `int32` | itgen_mat_bounce_count | [ ] | filters on the platform, writable | Number of visits referred by this campaign with exactly one action. |
| `label` | `varchar2` | itgen_mat_label | [ ] | filters on the platform, writable | Campaign name and keyword combined, for instance 'summer-sale - discount'. |
| `max_actions` | `int32` | itgen_mat_max_actions | [ ] | filters on the platform, writable | Maximum number of actions in a single visit referred by this campaign. |
| `nb_actions` | `int32` | itgen_mat_nb_actions | [ ] | filters on the platform, writable | Number of actions across visits referred by this campaign. |
| `nb_uniq_visitors` | `int32` | itgen_mat_nb_uniq_visitors | [ ] | filters on the platform, writable | Number of unique visitors referred by this campaign. |
| `nb_users` | `int32` | itgen_mat_nb_users | [ ] | filters on the platform, writable | Number of visits with a User ID set, referred by this campaign. |
| `nb_visits` | `int32` | itgen_mat_nb_visits | [ ] | filters on the platform, writable | Number of visits referred by this campaign. |
| `nb_visits_converted` | `int32` | itgen_mat_nb_visits_converted | [ ] | filters on the platform, writable | Number of visits referred by this campaign during which at least one goal was converted. |
| `segment` | `varchar2` | itgen_mat_segment | [ ] | filters on the platform, writable | Matomo's own segment expression for this campaign - malformed on this container (referrerType==campaign repeated rather than joined once), registered as-is rather than silently corrected. |
| `sum_visit_length` | `int32` | itgen_mat_sum_visit_length | [ ] | filters on the platform, writable | Sum of the length of visits referred by this campaign, in seconds. |

