adds analytics