adding loading to analytics