1.1.3 • Published 3 years ago

@socialgouv/matomo-metabase v1.1.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

@socialgouv/matomo-metabase

Extract matomo data and push to Postgres

Use Matomo Live.getLastVisitsDetails API to extract visits informations.

Usage

npx @socialgouv/matomo-metabase [YYYY-MM-DD]

Environment variables Deployment

namevalue
MATOMO_KEY*matomo api token
MATOMO_SITE*matomo site id
MATOMO_URL*matomo url
PGDATABASE*Postgres connection string
DESTINATION_TABLEmatomo
STARTDATEdefault to today()
RESULTPERPAGEmatomo pagination : 100
OFFSETdefault days to check in the past; default = 3

Dev

docker-compose up
export MATOMO_URL=
export MATOMO_SITE=
export MATOMO_KEY=
export DESTINATION_TABLE=
export STARTDATE=
export OFFSET=
export PGDATABASE=postgres://postgres:postgres@127.0.0.1:5455/postgres
yarn start

Use yarn test -u to update the snapshots

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago