api/parts/mgmt/tracker

This module is meant to handle event tracking

Source:

Methods

(static) enable()

Source:

Enable tracking for this server

(static) enableDashboard()

Source:

Enable tracking for dashboard process

(static) getSDK() → {Object}

Source:

Get SDK instance

Returns:

Countly NodeJS SDK instance

Type
Object

(static) isEnabled(level) → {boolean}

Source:

Check if tracking enabled

Parameters:
Name Type Description
level boolean | string

level of tracking

Returns:

if enabled

Type
boolean

(static) reportEvent(event)

Source:

Report server level event

Parameters:
Name Type Description
event object

event object

(static) reportUserEvent(id, event, level)

Source:

Report user level event

Parameters:
Name Type Description
id string

id of the device

event object

event object

level string

tracking level

(inner) collectServerData()

Source:

Get server data

(inner) collectServerStats()

Source:

Get server stats

(inner) getDistro(callback)

Source:

Get OS distro

Parameters:
Name Type Description
callback function

callback to get results

(inner) getDomain(callback)

Source:

Get server domain or ip

Parameters:
Name Type Description
callback function

callback to get results

(inner) getHosting(callback)

Source:

Get server hosting provider

Parameters:
Name Type Description
callback function

callback to get results

(inner) stripTrailingSlash(str) → {string}

Source:

Strip traling slashes from url

Parameters:
Name Type Description
str string

url to strip

Returns:

stripped url

Type
string