Fixing Google Analytics for non admin users.

Adding a public endpoint to get the google analytics tracking id and using
that endpoint instead of the settings endpoint.

addresses #501