Add Google Analytics support

This reverts commit 4beef92822292fa09f033e619fce100486277b59.