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.
Detect that a PWA has been launched from Microsoft Store
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 PWAbuilder.com to build the app packages, I tried to fill the "URL" field of the "Windows Package Options" with the following value: "https://base.finance?utm_source=microsoft_store". However, it does not seem to work: when I open the app from the MS Store, the start url is just "https://base.finance". What else can I do?
Just wrote a brief article on this:
Edge Chromium will use a custom referrer when loading your start URL when a user first opens your PWA. You can then keep track of this state in SessionStorage.
document.referrer === 'app-info://platform/microsoft-store';
Sign in to comment
Sort by: Oldest