improve google analytics script to allow tracking of internal pages