Improve the performance of inject-google-analytics.sh