You are correct, I don't believe it's possible to use OAuth with a private app. You would likely need to create an app through the partners dashboard and then be able to use OAuth to request the required analytics scope.
Kevin_A | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
I'm trying to get custom app authorized with reports_editing scopes and getting an error "Oauth error invalid_scope: The access scope is invalid: reports_editing"
if I replace that reports_editing scope with something like read_orders instead, the link works, but that's obviously not what I need for Analytics API.
I'm also getting the same scope error when I'm trying to install the custom app in our production store, which is a Shopify Plus store.
What is the right scope should I request for Analytics API.
btw, I also tried installing the app with the read_analytics oAuth scope (which is also mentioned int he Analytics API docs) but still getting the same "analytics_token access denied" error requesting analyticsToken via graphql query.
so what are the right oAuth scopes do I need to be able to get analytics token?
Basically this should work with your private app credentials with permissions to Analytics. Since you are on a Shopify Plus plan, I will suggest you to just contact your merchant success manager to see what's wrong. Sometimes they have to activate 'things' on their side for 'things' on your side to work.