Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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.
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
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?
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.
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
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?
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.
Hello Marvelous42,
Quick question, you said that the data for product views is accessible, how can you access it?
Thanks!