fix javascript issue caused by enabling GA only in prod