urgent maps and analytics fixes

Two configuration snafus :(

1) maps config broke because JS can't access environment variables

2) analytics wasn't working -- I think the code i put in for it got lost in some of the complicated merges back when B and I were both working on the site design etc :-/  Have now set up analytics for staging as well as production environment.