added validator to check if value is integer
updated google analytics code because a newer version is available