Add Analytics code

Fix #27.