The app dashboard shows installs (installs/re-opened stores) and uninstalls (uninstalls/closed stores).
While install is clear due to the first call by the shop to the app. And uninstall is clear due to the webhook app/uninstall.
How do you detect closed and re-opened stores?
When I receive the "shop/update" webhook topic, I check the current plan of the shop. When I receive "Unavailable Shop", then I can assume that they are closed. Fair enough.
Is there a reliable way to get the information that a shop has been re-opened? I know I could do it by checking whether the last event that I received was "Closed Store", but it feels wrong. Is there a webhook that provides the information at the moment when the shop is re-opened? Or is the a way to retrieve the app history via the api, finally?
Why is this important to me?
Because we permanently try to optimize our own conversion rate by constantly checking where we lose merchants who installed our app. And that's why we need detailed events to better understand how man active users we really have and what are the reasons when they stop to use our app (difference between closed shop and uninstalled the app).
The goal is to also have the same numbers in the app dashboard and our internal KPI tool.
I believe the only solution currently is to ping the closed stores regularly to check if the response is something new.
However, our problem is that Shopify seems to sometimes respond with a 404 Not found even if the store is not in fact closed. A webhook would be much neater