add google analytics and rearrange script tags