usefathom-fathom

Namespace

usefathom-fathom

Description:
  • Introducing Fathom Lite - the popular, open-source website analytics tool with millions of downloads! Long-term maintenance, bug fixes, and cookie-free tracking set it apart. Get started today!

Author:
See:

Methods

(async, static) createUsefathomFathomInstance(context, body) → {UsefathomFathom}

Description:
  • Create a new Fathom Lite instance

Example
import { Context } from '@osaas/client-core';
import { createUsefathomFathomInstance } from '@osaas/client-services';

const ctx = new Context();
const body: UsefathomFathomConfig = { name: 'myinstance', ... };
const instance = await createUsefathomFathomInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body UsefathomFathomConfig

Service instance configuration

Returns:
  • Service instance
Type
UsefathomFathom

(async, static) getUsefathomFathomInstance(context, name) → {UsefathomFathom}

Description:
  • Get a Fathom Lite instance

Example
import { Context } from '@osaas/client-core';
import { getUsefathomFathomInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getUsefathomFathomInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the collector to be retrieved

Returns:
  • Service instance
Type
UsefathomFathom

(async, static) removeUsefathomFathomInstance(context, name)

Description:
  • Remove a Fathom Lite instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the collector to be removed