Fix getLocation failing due to analytics

`e` isn't defined here, so the location object seems like a pretty good substitute.