Fix analytics placement in DOM tree