Update Google Analytics code and use env vars

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.