added a console log statement to error condition in anayltics.jssp