Is it possible to fetch Online Sessions / Traffic data which is shown in the Analytics section?

Is it possible to fetch Online Sessions / Traffic data which is shown in the Analytics section?

marvelous42
Shopify Partner
7 0 6

Hi there.

 

I am trying to recreate some of the analytics/reports data which cannot be accessed through the Analytics API anymore due to deprecation. 


So the question is: Can I fetch online sessions (traffic) data which is natively tracked from the website? Here I am not talking about the views of each product which is accessible, but overall traffic!

Thanks.

Replies 9 (9)

Liam
Community Manager
3108 340 871

Hi Marvelous42,

 

To measure overall traffic you may be more successful with using analytics tools like Google Analytics, as there's no direct API endpoint for accessing online store traffic. 

 

 

Liam | Developer Advocate @ 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

marvelous42
Shopify Partner
7 0 6
So the traffic data from the dashboard cannot be fetched through the API?

JoseR_uf
Visitor
1 0 0

How come there is no endpoint to the sessions and traffic data you gather?
Sessions measured by Google Analytics differ +/- 10% from what i can see in my store dashboard because of how GA4 measures this, and i would like to keep uniform data for analysis. Are there really no plans to fetch this data in REST API?

marvelous42
Shopify Partner
7 0 6

My point exactly, it also seems like a lot of extra work to add an third party analytics tool just to get the basic information Shopify already has 😕 We are building an app for the marketplace, so we need to require that every single store has GA etc. installed.

Liam
Community Manager
3108 340 871

From looking through our APIs, it doesn't seem that the analytics data is currently exposed by API endpoints, but I've added this as a feature request to our internal dev team.

Liam | Developer Advocate @ 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

marvelous42
Shopify Partner
7 0 6

Thanks for the reply Liam. So for the time being we will require that our clients installing the app from the marketplace needs apply a third party analytics in order to get this data, is that correctly understood?

 

DMJerry402
Visitor
1 0 0

Hello @marvelous42 .  Did you get an answer for this?  I am using DOMO and I no longer see the traffic or session end point when trying to connect, so I'm thinking they haven't added it back.

@Liam - Do you know if this is still correct or do we have a workaround that doesn't involve G4 or UA?  Really need our clients to be able to tie to the reports in the management portal.

Mauricio_
Visitor
2 0 0

Hello @Liam. Any updates?

Peter_Datma
Shopify Partner
72 0 7

Hello Marvelous42,

 

Quick question, you said that the data for product views is accessible, how can you access it? 

 

Thanks!

Peter @ Datma (product analytics & reporting)