# Does Glide know if it has been “Add to Home” or launched from the desktop not from a browser?

**URL:** <https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361>\
**Category:** Ask for Help\
**Created:** [February 15, 2026, 8:12pm UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361 "2026-02-15T20:12:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [February 15, 2026, 8:12pm UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361/1 "2026-02-15T20:12:02Z")

</div>

SSIA - does Glide track browser type, launch, etc

Thanks

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 16, 2026, 12:15am UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361/2 "2026-02-16T00:15:37Z")

</div>

> [@Measure PWA installs](https://community.glideapps.com/t/measure-pwa-installs/58073/4):
>
> That post is almost 2 years old. We didn’t have the JavaScript column back then. Yes. In fact, simply copy/pasting that code that you linked to seems to do the trick: function getPWADisplayMode() { const isStandalone = window.matchMedia('(display-mode: standalone)').matches; if (document.referrer.startsWith('android-app://')) { return 'twa'; } else if (navigator.standalone || isStandalone) { return 'standalone'; } return 'browser'; } return getPWADisplayMode();

You can try this.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [February 16, 2026, 1:41am UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361/3 "2026-02-16T01:41:22Z")

</div>

Just tested it…WORKS GREAT!

My next test is to move my domain over to cloudflare and use my cloudflare worker, move glideapp into the same domain and see if that works/is the long term solution.

Thanks again for you help (and @Darren_Murphy for the original solution)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [February 23, 2026, 1:41am UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361/4 "2026-02-23T01:41:32Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
