What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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