Adds analytics to ae