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.
Solved! Go to the solution
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.