add google tracking and fix script bug