fixes an offset computation bug
adds in google analytics