adds analytics to ae