Just a thought, maybe you could use something like this

https://github.com/mozilla/mozillians/blob/master/templates/includes/google_analytics.html

where GA_ACCOUNT_CODE is stored in settings/local.py, with the actual key 
only on the production server, so that we can avoid hits from local instances, dev and stage servers.
You can also update your local.py-dist with GA_ACCOUNT_CODE = None.