Analytics added.

Could probably use it in a different script eventually.