Adds analytics codes