plausible-analytics
- Description:
Elevate your data privacy with Plausible Analytics. Get simple, clutter-free insights without compromising user privacy. Enjoy an easy, lightweight, and privacy-focused Google Analytics alternative!
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createPlausibleAnalyticsInstance(context, body) → {PlausibleAnalytics}
- Description:
Create a new Plausible Analytics instance
Example
import { Context } from '@osaas/client-core';
import { createPlausibleAnalyticsInstance } from '@osaas/client-services';
const ctx = new Context();
const body: PlausibleAnalyticsConfig = { name: 'myinstance', ... };
const instance = await createPlausibleAnalyticsInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
PlausibleAnalyticsConfig | Service instance configuration |
Returns:
- Service instance
- Type
- PlausibleAnalytics
(async, static) getPlausibleAnalyticsInstance(context, name) → {PlausibleAnalytics}
- Description:
Get a Plausible Analytics instance
Example
import { Context } from '@osaas/client-core';
import { getPlausibleAnalyticsInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getPlausibleAnalyticsInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the server to be retrieved |
Returns:
- Service instance
- Type
- PlausibleAnalytics
(async, static) removePlausibleAnalyticsInstance(context, name)
- Description:
Remove a Plausible Analytics instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the server to be removed |