2.1.0 • Published 1 month ago

@socialgouv/matomo-postgres v2.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 month ago

@socialgouv/matomo-postgres

header

Extract matomo data from Live.getLastVisitsDetails API and push events and visits informations to Postgres.

Usage

Run the following job with correct environment variables.

npx @socialgouv/matomo-postgres

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 (defaults to 500)
INITIAL_OFFSETHow many days to fetch on initialisation (defaults to 3)

Dev

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

Use yarn test -u to update the snapshots

Database migrations

yarn migrate is run on each yarn start with Kysely migrations at ./src/migrations

2.0.2

3 months ago

2.1.0

1 month ago

2.0.1

1 year ago

1.6.0-beta.1

2 years ago

2.0.0-beta.2

2 years ago

2.0.0-beta.1

2 years ago

2.0.0-beta.4

2 years ago

2.0.0

2 years ago

2.0.0-beta.3

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.5.2-beta.4

2 years ago

1.5.2-beta.3

2 years ago

1.5.2-beta.2

2 years ago

1.5.2-beta.1

2 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.4

3 years ago