Jmbo analytics app.
Project description
Jmbo Analytics
==============
**Jmbo analytics brings the power of Google Analytics to your Django projects**
.. figure:: https://travis-ci.org/praekelt/jmbo-analytics.svg?branch=develop
:align: center
:alt: Travis
.. contents:: Contents
:depth: 3
Required
--------
* You have to add ``jmbo_analytics`` to you ``INSTALLED_APPS``
* You have to specify a Google Analytics `tracking code <https://support.google.com/analytics/bin/answer.py?hl=en&answer=1008080>`_.
where ``xxx`` is your tracking code::
JMBO_ANALYTICS = {
'google_analytics_id': 'xxx',
}
Usage
-----
``jmbo-analytics`` offers you two ways to add tracking to your pages.
1. HTML tag
***********
Using ``<img />`` and putting it in your ``base.html``::
{% load jmbo_analytics_tags %}
<div style="display: none;">
<img src="{% google_analytics %}" width="0" height="0" />
</div>
2. Middleware and Celery
************************
Using Django's middleware you can process every request and use Celery to make the request to Google Analytics.
Note that this does not work behind a reverse caching proxy::
MIDDLEWARE_CLASSES = (
'jmbo_analytics.middleware.GoogleAnalyticsMiddleware',
)
You may have to add ``jmbo_analytics`` to your ``CELERY_IMPORTS``::
CELERY_IMPORTS = ('jmbo_analytics.tasks')
You may also specify paths that will be excluded when tracking::
GOOGLE_ANALYTICS_IGNORE_PATH = ['/health/', ]
Authors
=======
Praekelt Consulting
-------------------
* Hedley Roos
Unomena
-------
* Euan Jonker
Changelog
=========
0.1
---
#. Simplify dependencies.
#. Make transparent GIF method asynchronous.
0.0.4
-----
#. Better packaging.
0.0.3
-----
#. Fork, rename, re-license from panomena-analytics.
==============
**Jmbo analytics brings the power of Google Analytics to your Django projects**
.. figure:: https://travis-ci.org/praekelt/jmbo-analytics.svg?branch=develop
:align: center
:alt: Travis
.. contents:: Contents
:depth: 3
Required
--------
* You have to add ``jmbo_analytics`` to you ``INSTALLED_APPS``
* You have to specify a Google Analytics `tracking code <https://support.google.com/analytics/bin/answer.py?hl=en&answer=1008080>`_.
where ``xxx`` is your tracking code::
JMBO_ANALYTICS = {
'google_analytics_id': 'xxx',
}
Usage
-----
``jmbo-analytics`` offers you two ways to add tracking to your pages.
1. HTML tag
***********
Using ``<img />`` and putting it in your ``base.html``::
{% load jmbo_analytics_tags %}
<div style="display: none;">
<img src="{% google_analytics %}" width="0" height="0" />
</div>
2. Middleware and Celery
************************
Using Django's middleware you can process every request and use Celery to make the request to Google Analytics.
Note that this does not work behind a reverse caching proxy::
MIDDLEWARE_CLASSES = (
'jmbo_analytics.middleware.GoogleAnalyticsMiddleware',
)
You may have to add ``jmbo_analytics`` to your ``CELERY_IMPORTS``::
CELERY_IMPORTS = ('jmbo_analytics.tasks')
You may also specify paths that will be excluded when tracking::
GOOGLE_ANALYTICS_IGNORE_PATH = ['/health/', ]
Authors
=======
Praekelt Consulting
-------------------
* Hedley Roos
Unomena
-------
* Euan Jonker
Changelog
=========
0.1
---
#. Simplify dependencies.
#. Make transparent GIF method asynchronous.
0.0.4
-----
#. Better packaging.
0.0.3
-----
#. Fork, rename, re-license from panomena-analytics.
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
jmbo-analytics-0.1.tar.gz
(9.9 kB
view details)
Built Distribution
jmbo_analytics-0.1-py2.7.egg
(17.5 kB
view details)
File details
Details for the file jmbo-analytics-0.1.tar.gz
.
File metadata
- Download URL: jmbo-analytics-0.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06dc5f0cf999bc72b43a2a2f11e5a2d0812cfd0b9465663cc1557af0025e9fd6 |
|
MD5 | 0217804b45e2f1c70dd8f07d1ec5e913 |
|
BLAKE2b-256 | c4b7f8cc9209b07c8a3b48c9cf3e820abead47a0dc6c71af2975d904f68d9857 |
File details
Details for the file jmbo_analytics-0.1-py2.7.egg
.
File metadata
- Download URL: jmbo_analytics-0.1-py2.7.egg
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 233caca5e9aa06749e6fca468d8a68ba585cb7baacd0b065917c526742e2e6ca |
|
MD5 | 741c200a278e8a50db2626b8b9c133e3 |
|
BLAKE2b-256 | 3a2537fbf779335b5224233d725a37c43472dc4a8a21d821b6c455add4039203 |