Programmatic way to fetch page hits and of for a product along-with the time

Solved
Excursionist
12 1 2

I want to know the best way to fetch the page hits and sales information of a product along-with the time when it occured in a programmatic manner. I am fairly new to the Shopify eco-system and would appreciate any related inputs.

 

Thanks!

0 Likes
Shopify Partner
723 63 97

For Shopify Plus customers Reports API is available - https://help.shopify.com/en/api/reference/analytics/report. There is no other way to pull the analytics from Shopify in a programatic manner.

 

The alternative would be to pull this out from Google Analytics, you can link a GA account to a Shopify store.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes

Success.

Excursionist
12 1 2

I was wondering if we can use the Analytics API using shopify-ql for that purpose.

 

https://help.shopify.com/en/api/reference/analytics/shopify-ql/visits#landing-page

 

1 Like
Shopify Partner
723 63 97

Wow, nice. Thanks for sharing! I didn't know this API exists.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes