How to get total sales and visitors of store?

Folkex
New Member
1 0 0

Hello there,

Actually i am creating my custom app in shopify and i want to get the total sales and total visitor or sesion of the store through api or any other method. Please suggest how i can do that?

I am waiting for reply.

Thanks

Replies 7 (7)
Alex
Shopify Staff
Shopify Staff
1561 81 321

Hey @Folkex.

 

From an embedded app, you can make ShopifyQL calls from within the client. There is no direct way to access this data outside of ShopifyQL though, you would have to parse through orders programatically for total sales and I'm not sure you could get visitors without perhaps placing a tracking pixel on the storefront, which you could do with the Script Tags API or the Assets API.

 

Cheers.

Alex | 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 the Shopify Help Center or the Shopify Blog

oscprofessional
Shopify Partner
11501 1804 2308

Hello 

Using Sales schema(Graph QL) You can Get Total sales of perticular Day's. Please Reffer Below link
1) https://help.shopify.com/en/api/reference/analytics/shopify-ql/sales

Using Visits schema(Graph QL) You can Get Total Visitors and Total Sessions. Please Reffer Below link
1) https://help.shopify.com/en/api/reference/analytics/shopify-ql/visits

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
yamitcar
Tourist
4 0 1

Hi!

 

looks like the ShopifyQueryLanguage for visits is deprecated and won't be able

https://shopify.dev/docs/admin-api/rest/reference/analytics/shopify-ql

The Analytics API is deprecated. Please use our other APIs to get Sales, Payments, Taxes, and Customer data. Visits data is no longer available.

is there another way to get that info?

mc-dev
Tourist
3 0 1

Hi, are there any update on this topic?

Lexuser
New Member
1 0 1

any updates here?

hamma11
Tourist
4 0 1

Hey any updates so far?

beansnrice
Tourist
3 0 2

Any updates on this? We need to get Visits data to report on.