matomo-org-matomo
- Description:
Unleash the power of analytics with Matomo. Own your data with this feature-rich open-source alternative to Google Analytics. Easy installation, real-time stats, and privacy-driven, used by millions!
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createMatomoOrgMatomoInstance(context, body) → {MatomoOrgMatomo}
- Description:
Create a new Matomo instance
Example
import { Context } from '@osaas/client-core';
import { createMatomoOrgMatomoInstance } from '@osaas/client-services';
const ctx = new Context();
const body: MatomoOrgMatomoConfig = { name: 'myinstance', ... };
const instance = await createMatomoOrgMatomoInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
MatomoOrgMatomoConfig | Service instance configuration |
Returns:
- Service instance
- Type
- MatomoOrgMatomo
(async, static) getMatomoOrgMatomoInstance(context, name) → {MatomoOrgMatomo}
- Description:
Get a Matomo instance
Example
import { Context } from '@osaas/client-core';
import { getMatomoOrgMatomoInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getMatomoOrgMatomoInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the matomo to be retrieved |
Returns:
- Service instance
- Type
- MatomoOrgMatomo
(async, static) removeMatomoOrgMatomoInstance(context, name)
- Description:
Remove a Matomo instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the matomo to be removed |