Skip to main content

Google analytics for django

This an installable django application to add your Google analytics code to your website template(s). It is compatible with Django 1.8, 1.9 and 1.10.

Python 2.7 and python 3.5 are supported.

Installation

pip install django-google-analytics-id

add analytics to INSTALLED_APPS

Usage

Load template tag {% load analytics_tags %}

Add {% google_analytics ‘UA-123-1’ %} to your base template (in <HEAD> section).

You can also pass the name of an option from setting.

GOOGLE_ANALYTICS_ID = ‘UA-123-1’ {% google_analytics ‘GOOGLE_ANALYTICS_ID’ %}

if no parameter is provided, settings.GOOGLE_ANALYTICS_ID as default value

Options

DISABLE_GOOGLE_ANALYTICS, bool If true, {% google_analytics %} will return empty string. Can be used to enable google analytics in development and/or qa environments

Bugs and requests

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.

https://github.com/Baguage/django-google-analytics-id/issues

Metadata

Release files for django-google-analytics-id 1.0.1

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

Source distribution (sdist)

Source distribution for django-google-analytics-id 1.0.1
File Size Uploaded Provenance Actions
django-google-analytics-id-1.0.1.zip 8.0 kB Without provenance Details for django-google-analytics-id-1.0.1.zip

Built distribution (wheel)

Table of built distributions (wheels) for django-google-analytics-id 1.0.1
File Interpreter ABI Platform Actions
django_google_analytics_id-1.0.1-py2.7.egg Legacy Egg format - - Details for django_google_analytics_id-1.0.1-py2.7.egg

Total release size: 16.0 kB

Release files / django-google-analytics-id-1.0.1.zip

Download URL django-google-analytics-id-1.0.1.zip
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0c360b8b9d7a26e43fed250557172a94ae87748eddd9c2d145845aa3051e5603
BLAKE2b-256 checksum
How to use checksums
96bfbf96d3a6c4a07e4f9bb44ce474088e43105ff63d2fc1d2a1b0c687420499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_google_analytics_id-1.0.1-py2.7.egg

Download URL django_google_analytics_id-1.0.1-py2.7.egg
Size 8.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
48f34ba9b6509057e52d131161ef8a21868943e0bbd296b7398f141d4aa5fec5
BLAKE2b-256 checksum
How to use checksums
24041e2425f67991a142aba605c3b6dd051b4dfc04b40c839e04421c3654dc62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-google-analytics-id 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

1.0

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