codeforamerica / adopt-a-hydrant

A web application that allows citizens to "adopt" civic infrastructure, such as fire hydrants that need to be shoveled out after it snows.
http://adopt-a-hydrant.herokuapp.com/
BSD 3-Clause "New" or "Revised" License
708 stars 234 forks source link

Update Google Analytics code and use env vars #31

Closed monfresh closed 10 years ago

monfresh commented 10 years ago

The GA ID and domain name were hardcoded before. I moved them to environment variables and wrapped the script inside a conditional so that it only gets displayed in production if the env var has been set.

I also updated the README with instructions for setting the env vars on Heroku.

monfresh commented 10 years ago

What the? This was only supposed to push 2 changes! I'll close and try this again.