codeforamerica / civic-issue-finder

UNMAINTAINED. An embeddable widget to find issues on the Code for America API
http://www.codeforamerica.org/geeks/civicissues
33 stars 15 forks source link

Collect views #34 #35

Closed ondrae closed 9 years ago

ondrae commented 9 years ago

This is ready to merge in the morning. It adds a new Google Analytics event for each issue that is shown. It sends the github url and the referrer url as a comma separated string.

Because we can now get the count of issue views from GA, we don't need the database that @migurski set up anymore. When we merge this, we can also drop the Heroku db.

I've got a new test included, to ensure all the GA stuff is being rendered.

Additionally, fixed a few other tests and cleaned up some unused code.