externalise the analytics thingy