analytics added to main API
analytics added to main API