Repositioned the analytics code

in an attempt to get it to work.