Add the first implementation of the analytics API