fixed reference to analytics object