Attempt at adding various metric tracking tools using just jquery and javascript