added analytics to head, rudimentary