Rewrite script for including Google Analytics service