Just reached here from Google. Thanks for writing this boilerplate, I am going to write Analytify Extension now ;)

Cheers!