invantive documentation
Invantive Support ForumsLog In / Sign Up

GoalConversions: Matomo Matomo Goals Get

read only REST

  • Catalog: Matomo
  • Schema: Goals
  • Label: Matomo Goals Get

Can only retrieve data.

Summary

Goal conversion metrics for one site over one period, summed across every goal defined on the site and split into a new-visitor half and a returning-visitor half. Every row is the site-wide total across all goals; a breakdown per goal is not available.

API Source

  • Endpoint: /index.php?module=API&method=Goals.get&idSite={id_site}&period={period}&date={date}&format=json

Performance Characteristics

Characteristic Value
Write rows per minute 1,780

The result can be cached on the client.

Parameters

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

Table Columns

The columns of the table GoalConversions 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
conversion_rate varchar2 itgen_mat_conversion_rate filters on the platform, writable Conversion rate, formatted by Matomo itself as a percentage.
conversion_rate_new_visit varchar2 itgen_mat_conversion_rate_new_visit filters on the platform, writable Conversion rate among new visitors, formatted by Matomo itself as a percentage.
conversion_rate_returning_visit varchar2 itgen_mat_conversion_rate_returning_visit filters on the platform, writable Conversion rate among returning visitors, formatted by Matomo itself as a percentage.
nb_conversions int32 itgen_mat_nb_conversions filters on the platform, writable Number of goal conversions, summed across every goal.
nb_conversions_new_visit int32 itgen_mat_nb_conversions_new_visit filters on the platform, writable Number of goal conversions by a new visitor.
nb_conversions_returning_visit int32 itgen_mat_nb_conversions_returning_visit filters on the platform, writable Number of goal conversions by a returning visitor.
nb_visits_converted int32 itgen_mat_nb_visits_converted filters on the platform, writable Number of visits during which at least one goal was converted.
nb_visits_converted_new_visit int32 itgen_mat_nb_visits_converted_new_visit filters on the platform, writable Number of visits by a new visitor during which at least one goal was converted.
nb_visits_converted_returning_visit int32 itgen_mat_nb_visits_converted_returning_visit filters on the platform, writable Number of visits by a returning visitor during which at least one goal was converted.
revenue double itgen_mat_revenue filters on the platform, writable Revenue attributed to goal conversions, summed across every goal.
revenue_new_visit double itgen_mat_revenue_new_visit filters on the platform, writable Revenue attributed to goal conversions by a new visitor.
revenue_returning_visit double itgen_mat_revenue_returning_visit filters on the platform, writable Revenue attributed to goal conversions by a returning visitor.