Skip to content

A simple django application to using Google Analytics in your project and tying different GA tags to different sites

Notifications You must be signed in to change notification settings

LUKKIEN/django-google-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Analytics for Django Projects

Installation

  1. Add googletools to your INSTALLED_APPS
  2. Run ./manage.py migrate (or ./manage.py syncdb if you do not make use of South)

Management

Go to the admin interface. When correctly installed, you will find the Googletools app. Here you can manage your Google Analytics and Site Verification codes.

Templatetags

In order to use the googletools in your templates you'll have to load the templatetags.

{% load googletools %}

Google Analytics

Use {% analytics_code %} for inserting your Analytics code. This will return an empty string when no code is setup for the current site.

Google Site Verification

Use {% site_verification_code %} for inserting your site verification code. This will return an empty string when no code is setup for the current site.

About

A simple django application to using Google Analytics in your project and tying different GA tags to different sites

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%