django-ga-mail app
A reusable Django app that sends google analytics report by email.
Installation
To get the latest stable release from PyPi
$ pip install django-ga-mail
To get the latest commit from GitHub
$ pip install -e git+git://github.com/nanvel/django-ga-mail.git#egg=ga_mail
Add ga_mail to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'ga_mail',
)
Specify next variables in settings:
GA_PROFILE_ID = 12345678
GA_USERNAME = 'some.user@gmail.com'
# don't use your working account here,
# create another one for analytics and give it access to ga profile
GA_PASSWORD = 'somepass'
GA_SOURCE_APP_NAME = 'some.site',
ANALYTICS_BLOCKS = (
'new_visitors_30days_today',
'new_visitors_7days_today_vs_14days_7days',
'pageviews_7days_today')
Check that MANAGERS variable contains necessary emails.
Available blocks:
returning_visitors_7days_today
new_visitors_7days_today
new_visitors_30days_today
new_visitors_7days_today_vs_14days_7days
new_visitors_7days_today_vs_returning_visitors_7days_today
pageviews_7days_today
countries_30days_today
Call python manage.py ga_mail to send analytics report.
Contribute
If you want to contribute to this project, please perform the following steps
# Fork this repository
# Clone your fork
$ virtualenv .env --no-site-packages
$ source .env/bin/activate
$ python setup.py install
$ pip install -r test_requirements.txt
$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branch
Metadata
Release files for django-ga-mail 0.2.2
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 | |
|---|---|---|---|---|
| django-ga-mail-0.2.2.tar.gz | 7.4 kB | Without provenance | Details |
Release files / django-ga-mail-0.2.2.tar.gz
| Download URL | django-ga-mail-0.2.2.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
279eca0ecd3593e05d04cd3242d3a95c51a68f1cdbee7b6bf1e508a04e570fb9
|
|
BLAKE2b-256 checksum How to use checksums |
b865a0959ad0d6b02783cf02bdd49270a3dbd7c11364f5c424f1e5cfabf2fec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-ga-mail 0.2.2
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.