1) No, there is not a way to disable registration.
2) make sure that the anylitics api is enabled in the api console for your account.
Go to the API console here:
Click the services link on the left hand side. in the list of Services, find the Analytics API and make sure it is switched to on.