Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Jmbo analytics app.

Project description

Jmbo Analytics
**Jmbo analytics brings the power of Google Analytics to your Django projects**

.. figure::
:align: center
:alt: Travis

.. contents:: Contents
:depth: 3


* You have to add ``jmbo_analytics`` to you ``INSTALLED_APPS``
* You have to specify a Google Analytics `tracking code <>`_.

where ``xxx`` is your tracking code::

'google_analytics_id': 'xxx',


``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" />

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::


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::


Praekelt Consulting

* Hedley Roos


* Euan Jonker


#. Send correctly named header.

#. Use requests library because it can drill through HTTP proxies.

#. Simplify dependencies.
#. Make transparent GIF method asynchronous.

#. Better packaging.

#. 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.

Filename, size & hash SHA256 hash help File type Python version Upload date
jmbo_analytics-0.2.1-py2.7.egg (17.5 kB) Copy SHA256 hash SHA256 Egg 2.7 Aug 25, 2016
jmbo-analytics-0.2.1.tar.gz (10.0 kB) Copy SHA256 hash SHA256 Source None Aug 25, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page