Fix JS error is Analytics isn't loaded