Analytics code to aap/statistcs