updated editor api
added google analytics stuff