handle google anayltics errors properly