building analytics library