Hi All,
I'm trying to get analytics token via simple graphql query from my private app
query {shop{id analyticsToken}}
but getting "analytics_token access denied" error in response. App has Analytics Read Access (read_analytics scope) enabled.
What other permissions do I need to set to be able to get analyticsToken?
Thank you,
Mikitski
Hey @mikitski
You need to request the correct scope during the OAuth process on installation to a shop. I outlined some more information in this post: https://community.shopify.com/c/Shopify-APIs-SDKs/what-should-i-do-pls/m-p/888021/highlight/false#M5...
Kevin_A | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Thank you @Kevin_A . Imma go check out your posts and report back... Hoping we can figure that out soon
@Kevin_A ,
just to clarify - this is a private app here. we built this private app to pipe the shopify data for our store into our enterprise datalake for the needs of integrated analytics and reporting. integration with regular REST APIs works great, but not with Analytics API.
Shopify private apps don't support oAuth. I just went thorough the oAuth steps anyway just to confirm, and getting "Oauth error invalid_request: The Shopify API application does not support oauth"
is there any other way to get authorized for the required Analytics API scopes for the private app?
Thanks,
Mykyta
User | Count |
---|---|
28 | |
7 | |
7 | |
6 | |
5 |