tap-matomo is a Singer tap for matomo.
Built with the Meltano Tap SDK for Singer Taps.
catalogstatediscoveractivate-versionaboutstream-mapsschema-flatteningbatchstructured-logging
- 3.10
- 3.11
- 3.12
- 3.13
| Setting | Required | Default | Description |
|---|---|---|---|
| api_url | True | None | The url for the API service |
| token_auth | True | None | The token to authenticate against the API service |
| idSite | True | None | The integer id of your website, or a comma-separated list of idSites, e.g. idSite=1,4,5,6 |
| method | False | Live.getLastVisitsDetails | The API method you want to call. |
| period | False | day | The period you request the statistics for. Can be any of: day, week, month, year or range. All reports are returned for the dates based on the website's time zone. |
| date | False | None | standard format = YYYY-MM-DD or magic keywords = today, yesterday, lastWeek, lastMonth or lastYear. These are relative the website timezone. |
| format | False | json | Defines the format of the output. |
| filter_limit | False | None | defines the number of rows to be returned, By default, only the top 100 rows are returned,Set to -1 to return all rows |
tap-matomo --aboutThis Singer tap will automatically import any environment variables within the working directory's
.env if the --config=ENV is provided, such that config values will be considered if a matching
environment variable is set either in the terminal context or in the .env file.
Refer to the Matomo API Authentication documentation.
You can easily run tap-matomo by itself or in a pipeline using Meltano.
tap-matomo --version
tap-matomo --help
tap-matomo --config CONFIG --discover > ./catalog.jsonFollow these instructions to contribute to this project.
Prerequisites:
- Python 3.10+
- uv
uv syncCreate tests within the tests subfolder and
then run:
uv run pytestYou can also test the tap-matomo CLI interface directly using uv run:
uv run tap-matomo --helpTesting with Meltano
Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.
Use Meltano to run an EL pipeline:
# Install meltano
uv tool install meltano
# Test invocation
meltano invoke tap-matomo --version
# Run a test EL pipeline
meltano run tap-matomo target-jsonlSee the dev guide for more instructions on how to use the SDK to develop your own taps and targets.