Skip to main content

Jmbo Analytics

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

Travis

Required

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

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

  1. Fixed incorrect header key.

0.2.1

  1. Send correctly named header.

0.2

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

0.1

  1. Simplify dependencies.

  2. Make transparent GIF method asynchronous.

0.0.4

  1. Better packaging.

0.0.3

  1. Fork, rename, re-license from panomena-analytics.

Metadata

Release files for jmbo-analytics 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jmbo-analytics 0.2.2
File Size Uploaded
jmbo-analytics-0.2.2.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jmbo-analytics 0.2.2
File Interpreter ABI Platform
jmbo_analytics-0.2.2-py2.7.egg Legacy Egg format - - Details

Total release size: 28.5 kB

Release files / jmbo-analytics-0.2.2.tar.gz

Download URL jmbo-analytics-0.2.2.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9ac04e4032bac27b622eb7ed941b4bf2a7c695bfae61830f8ef40a9be7b1176d
BLAKE2b-256 checksum
How to use checksums
3f023ed82c068b9ff75ab03419389ebc8cd91e0cf4699b7f2e0738dcf6b64e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / jmbo_analytics-0.2.2-py2.7.egg

Download URL jmbo_analytics-0.2.2-py2.7.egg
Size 17.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
bc00a5de6085f506e662d83275f62d833f09622b8052435c69716a0a19e7d344
BLAKE2b-256 checksum
How to use checksums
bc1bdeab44887492e17bc7f4e0a913694fe67495e1b4b6056239208b482e1cc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

0.0.4

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page