Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

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

marvelous42
Shopify Partner
7 0 3

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 6 (6)

Liam
Shopify Staff
2626 282 719

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 3
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 3

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
Shopify Staff
2626 282 719

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 3

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?