fixed broken analytics instance/ref