stephenmcd/mezzanine — pull request #469 by jerivas (2012-11-22 05:25:01+00:00)
Title: Google Analytics script update

The Google Analytics script has changed. If you use the old one, Google will not be able to identify the site as "yours". Existing sites that used the obsolete script seem to continue working, but new sites won't.

Also, I've moved the Google Analytics script outside footer_scripts.html and into its own template tag. This is because Google Webmaster Tools requires the script to be in the

. With the template tag the developer can put it wherever he wants.

Lastly, the script won't be included if DEBUG = True. This is just a safe in case you have defined the Analytics ID in production and copied the DB to development (it happens).