Adding tracking code to the site layout template
Limiting Latest scope to last 10 errors
Fixing problems with views
Tidying scopes
Use scope in controller