How to track events and retrieve analytics in an embedded app?

Topic summary

  • Focus: Tracking storefront events and retrieving analytics in an embedded Shopify app, plus distinguishing whether orders originate from mobile or desktop.

  • Approaches asked: Using Shopify App Proxy (routing storefront requests to your app server) to call an API for event tracking; asking if there’s an API to fetch store analytics (sessions, users, orders); seeking a method to detect mobile vs. desktop order creation.

  • Response: A tool suggestion—LogRocket—to track user activity and logs; noted as not recommended by Shopify. Claimed capabilities include supporting multiple merchant stores and generating event videos, with easy setup.

  • Outcome: The app developer will evaluate LogRocket.

  • Status: Open. No confirmed Shopify-native solution or API guidance for analytics retrieval, App Proxy event tracking best practices, or a method to differentiate mobile vs. desktop orders; key questions remain unanswered.

Summarized with AI on January 21. AI used: gpt-5.

Hello everyone, I’m creating an embedded app to track events from my merchant stores (stores that have installed my app). I’m facing some issues.

First, how can I track events on their online stores? I came across something that involves calling my API to track events via a Shopify proxy. Is this approach correct? Or are there any other solutions for this?

Second, can we use an API to retrieve analytics from the merchant stores? (For example, the count of sessions, users, and orders on the online store).

Third, how can I track and differentiate whether a customer’s order was created on a mobile or desktop platform?

Thanks in advance, everyone! :crying_cat:

1 Like

Hello @danhho . I am not sure about this but you can implement logrocket to track the user activity with the logs as well, but one thing logrocket is not recommended by shopify.

Thanks for your advice @karanQode , with logrocket can it track multilple store that installed my app? I’m overview something like google analytics but it maybe available track event for one store

Yes @danhho . it can track multiple store as well. The best thing is it creates video for all events by different store. One of the best tools and very easy to setup from my point of view.

Thanks @karanQode , I will check it out.