Add Google Analytics

If analytics is configured it will be added to each view.
Fixes #429