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
Built Distribution
Hashes for tracardi_key_counter-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faf3290910cb74abd57dc0714eedd3df40227395a8c377fc90a84960b3d01060 |
|
MD5 | 35e35d555e237b9fffe58a5400c539a4 |
|
BLAKE2b-256 | a5f43c63bb04fca2b06f5bb43bed2bb6737336ff15c7e1d34f993c5be90a2318 |