Google anlytics error - mismatch uri

Set up a API tracking but I get a uri_mismatch error. I put in the url of the main site in the OAuth credentials.

Can anyone help me set this up?