Solved

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

ruotmiller
Excursionist
17 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!

Accepted Solution (1)
ruotmiller
Excursionist
17 1 2

This is an accepted solution.

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

 

View solution in original post

Replies 3 (3)

Visely-Team
Shopify Partner
1843 210 488

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
ruotmiller
Excursionist
17 1 2

This is an accepted solution.

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

 

Visely-Team
Shopify Partner
1843 210 488

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