Matomo
This content is for v0.2.1. Switch to the latest version for up-to-date documentation.
Overview
Section titled “Overview”v0.1.0 introduced analytics goals. v0.2.0 added Tag Manager variables, triggers, tags, and declarative publication. v0.2.1 is a patch that fixes structured Matomo variable parameter decoding so unmanaged structured parameters do not block planning managed Data Layer variables.
Source: providers/matomo/README.md at v0.2.1.
Supported capabilities
Section titled “Supported capabilities”matomo.goal, matomo.variable (Data Layer), matomo.trigger (Custom Event), matomo.tag (Matomo Analytics event), $ref dependencies, and declarative publication.
Prerequisites
Section titled “Prerequisites”A Matomo instance, site ID, and — for Tag Manager — an existing container plus a Matomo Configuration variable before managing matomo.tag.
Authentication / setup
Section titled “Authentication / setup”Environment variables only. v0.2.1 does not load .agoraform.env.
Environment variables
Section titled “Environment variables”MATOMO_URL requiredMATOMO_TOKEN_AUTH requiredMATOMO_SITE_ID required for site resourcesMATOMO_CONTAINER_ID required for Tag ManagerSupported resources
Section titled “Supported resources”matomo.goal
Section titled “matomo.goal”- address: matomo.goal.trial_started attributes: name: Trial Started matchAttribute: event_action pattern: trialStartedOptional patternType: contains (default), exact, or regex. name is immutable once bound.
matomo.variable
Section titled “matomo.variable”- address: matomo.variable.user_id attributes: type: dataLayer key: userId name: User IDmatomo.trigger
Section titled “matomo.trigger”- address: matomo.trigger.trial_started attributes: type: customEvent event: trialStartedmatomo.tag
Section titled “matomo.tag”- address: matomo.tag.trial_started attributes: type: matomoAnalytics trigger: $ref: matomo.trigger.trial_started eventCategory: trial eventAction: startedeventCategory / eventAction (required) and eventName / eventValue (optional) may be literals or supported variable $refs.
Example manifest
Section titled “Example manifest”See the quick start.
Known limitations
Section titled “Known limitations”- Matomo is the only provider
- One container via
MATOMO_CONTAINER_ID - Data Layer / Custom Event / Matomo Analytics event tag only
MatomoConfigurationis not a managed resource- No
agoraform publishcommand; publication is declarative - No destroy, remote state, rollback, or scheduled publication