How to get analyticsToken via graphQL?

BudaDigital
Tourist
8 0 2

Hi, I'm trying to get my analyticsToken through GraphQL Admin API and I'm getting the "analytics_token access denied" error.

The documentation show me that it's possible but I didn't found any way to get it.

Am I doing something wrong? Someone else has faced this issue before and can help me with it?

Replies 5 (5)

BudaDigital
Tourist
8 0 2

Someone? 
Any updates about this?

CalD
Shopify Staff
140 22 36

Hey @BudaDigital,

Have you read through the 'Get store metrics with the Analytics API' tutorial yet? You'll need an Advanced Shopify plan and up for it to be available.

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

BudaDigital
Tourist
8 0 2
Yes, I'd checked that solution but I need to get and process this
information at the server side, this tutorial only covers the client side
and inside an embedded app. Doesn't work for me.

Do you have any alternative?

Thanks
BudaDigital
Tourist
8 0 2

@CalD any updates at Shopify's side?

This is a very important point to my analytics team

CalD
Shopify Staff
140 22 36

Hey @BudaDigital,

ShopifyQL requests currently must be made using the Embedded App SDK and I'm not aware of any planned updates or alternatives in that regard.

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog