Adds analytics to stackedit layout.