Hoarder
Django analytics kit for the data-obsessed.
Hoarder in an event tracking API for Django that supports multiple analytics backends: KISSMetrics, Google Analytics, local MongoDB storage.
Hoarder is for you if:
You want to use multiple web analytics tools without duplicating code for each of them
You want to be able to swap analytics packages without changing your code
You want to have a local copy of all your analytics data
Installation
Run pip install hoarder
Add ‘hoarder’ app to INSTALLED_APPS
Add ‘hoarder.middleware.LoggingMiddleware’ and ‘hoarder.middleware.DeduplicationMiddleware’ to MIDDLEWARE_CLASSES
Add the following to the beginning of head section in your base template:
{% load hoarder_tags %} {% tracking_code %}Specify the backends you want to use in HOARDER_BACKENDS settings variable
Supported backends
hoarder.backends.LogBackend - just outputs all events to log for debug purposes
hoarder.mongo.MongoBackend - stores all events in a local MongoDB database
hoarder.backends.KISSMetricsBackend - KISSMetrics integration
hoarder.ga.GABackend - Google Analytics integration
Settings
HOARDER_BACKENDS - list of enabled backends
HOARDER_MONGO_DATABASE - for Mongo backend, name of the database to use
KISSMETRICS_API_KEY - for KISSMetrics backend, the API key from your KISSMetrics account
Usage
Registering an event in view:
from hoarder import register_request_event
...
register_request_event(request, 'signed up', {'plan level' : 'Basic'})
Registering an event outside of a view:
from hoarder import register_request_event
...
register_user_event(user, 'billed', {'amount' : '49.99'})
Labeling current visitor:
from hoarder import label_visitor, ... label_visitor(request, 'Nice person')
Metadata
Release files for hoarder 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hoarder-0.0.6.tar.gz | 6.0 kB | Without provenance | Details for hoarder-0.0.6.tar.gz |
Release files / hoarder-0.0.6.tar.gz
| Download URL | hoarder-0.0.6.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce3e1d1a4bc3954510aa08cd55a9a436f7fc8da004ba75b0304acbfca2f48c1b
|
|
BLAKE2b-256 checksum How to use checksums |
0a577778dbac31bb8833d865eaa6b20ae850c7cd58e1e952b6f31b380e15f33f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hoarder 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.