Detect that a PWA has been launched from Microsoft Store

Ben 6 Reputation points

I built a PWA and integrated it in the Microsoft Store ( Now I would like to customize some of its functionalities for MS Store but first I need to detect (in javascript or CSS) that the app has been launched from MS Store (as opposed to launched from a web browser). Can you help me with this?

I also would like to track the app using Google Analytics and for that I need to pass one or several "utm" arguments in the start url. Since I used to build the app packages, I tried to fill the "URL" field of the "Windows Package Options" with the following value: "". However, it does not seem to work: when I open the app from the MS Store, the start url is just "". What else can I do?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
30,191 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Jussi Palo 6 Reputation points

    Does anyone have any answer to this? My app is pending because I'd need a way to hide links to other Stores but only when running in MS Store PWA.

    0 comments No comments