18F/foia-hub — pull request #74 by cmc333333 (2014-09-23 22:20:52+00:00)
Title: First pass at analytics

Part of #70

* Adds a jshint file for linting (thanks @theresaanna)
* Adds an `ANALYTICS_ID` setting, which should be overwritten (via `local_settings.py` in production)
* Adds this setting to all current templates
* Includes analytics JS setup in base template
* Moves JS for agency autocomplete out of the template into a separate file
* Triggers custom events when a) selecting an agency and b) clearing your choice (presumably your search terms didn't get you want you wanted)

I didn't see a good way to connect a "no results" event, but it's partially captured in event b.