Skip to main content

This plugin counts keys provided in payload.

Project description

Key counter plugin

This plugin counts keys provided in payload.

Configuration

{
  "path": "profile@stats.counters.MobileVisits"
}

This configuration indicated that profile has some stats at stats.counters.MobileVisits that count keys in form of a dict:

{
  "key1": 1,
  "key2": 33,
  ...
}

This is the place where additional counts will be saved.

Payload

Payload for this plugin must be either string or list of stings. Each string is a key to be counted.

For example if you count mobile and desktop visits. Get the agent type from context sent in event. And cut out information on platform and send it to this plugin to be counted. One this it will be 'mobile', other time it will be 'desktop' depending on the platform the customer is using.

Example of payload:

{
  "payload": "mobile"
}

or if multiple key as being sent.

{
  "payload": ["mobile", "android"]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracardi-key-counter-0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

tracardi_key_counter-0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page