How can i execute shopify_ql which i received from analytics report in node

Harold_carter
New Member
4 0 0

How can i execute shopify_ql which i received from analytics report in node

{ id: 2450260150, name: 'A new app report', shopify_ql: 'SHOW total_visitors, total_sessions OVER day(timestamp) AS day FROM visits SINCE -7d UNTIL today', updated_at: '2021-05-07T19:30:15+05:30', category: 'custom_app_reports' },

0 Likes
GrahamS
Shopify Staff
Shopify Staff
45 7 2

Hey @Harold_carter !

 

At this time, executing ShopifyQL queries for Reports has a specific set of requirements. You can use those parameters to publish data to the Reports section of the admin if you meet the necessary requirements, however the Report data cannot be pulled directly via API - you would just pull the parameters associated with the Report rather than the actual analytics data.

 

More information on the process would be found HERE, with a section on POSTing reports HERE

Graham S | API 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

0 Likes