Abstract google analytics into external script rather than inline