# Can you track PWA installs in google analytics?

**URL:** https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157
**Category:** Ask for Help
**Created:** [March 12, 2021, 1:08pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157 "2021-03-12T13:08:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![wtzr](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wtzr/32/14870_2.png) [@wtzr](https://community.glideapps.com/u/wtzr)
#### Post date: [March 12, 2021, 1:08pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/1 "2021-03-12T13:08:57Z")

</div>

Hi Guys,

I have google analytics 4 setup for glide.

I’m looking for a way to tell if people installed the app, or if they are just browsing the page.

Is there a way to track whether users are browsing your app through an install or through web?

Thanks!

---

<div class="post-metadata">

### Author: ![AymenM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aymenm/32/21370_2.png) [@AymenM](https://community.glideapps.com/u/AymenM)
#### Post date: [March 12, 2021, 1:22pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/2 "2021-03-12T13:22:05Z")

</div>

Hey !

Have you seen these videos ⬇

> **[Google Analytics](https://docs.glideapps.com/all/reference/integrations/analytics)**

---

<div class="post-metadata">

### Author: ![wtzr](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wtzr/32/14870_2.png) [@wtzr](https://community.glideapps.com/u/wtzr)
#### Post date: [March 12, 2021, 1:42pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/3 "2021-03-12T13:42:29Z")

</div>

HI Aymen,

Yes I have!

I’m just wondering if people found a way to see in an analytics if people have actually installed the app to their home screen, or just browsing to the web address.

I’m curious to see if the retention of people that have installed the App vs the ones who don’t is better.

---

<div class="post-metadata">

### Author: ![AymenM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aymenm/32/21370_2.png) [@AymenM](https://community.glideapps.com/u/AymenM)
#### Post date: [March 12, 2021, 1:46pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/4 "2021-03-12T13:46:15Z")

</div>

> [@wtzr](#):
>
> I’m just wondering if people found a way to see in an analytics if people have actually installed the app to their home screen, or just browsing to the web address.

Unfortunately, I can’t remember that it’s possible to see if users actually installed the app. But don’t quote me on that, I think that you may get more info on that very soon.

Hope this helps !

---

<div class="post-metadata">

### Author: ![ehdubya](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ehdubya/32/24087_2.png) [@ehdubya](https://community.glideapps.com/u/ehdubya)
#### Post date: [March 12, 2021, 2:01pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/5 "2021-03-12T14:01:59Z")

</div>

This may be of use:

> <https://stackoverflow.com/questions/51160118/track-add-to-homescreen-web-app-in-google-analytics>

---

<div class="post-metadata">

### Author: ![Maricopa\_Healthy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maricopa_healthy/32/36950_2.png) [@Maricopa\_Healthy](https://community.glideapps.com/u/Maricopa_Healthy)
#### Post date: [March 7, 2022, 6:26pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/6 "2022-03-07T18:26:09Z")

</div>

Hello!  
Did anyone ever figure out how to accomplish this? I see the the link to Stack Overflow, but I’m wondering how this was utilized with Glide.  
Thanks!

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [March 7, 2022, 8:33pm UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/7 "2022-03-07T20:33:29Z")

</div>

Looks like it should be possible using the [Javascript Plugin](https://www.glideapps.com/plugins/hell-yes-code).  
Because it’s a computed column, there wouldn’t be a way to see the value for each user from the builder, but what you could do is use an action somewhere in the app that takes the computed value and writes it to a non-computed column in each users profile.

Update: I just tested this quickly, and it works. At least with IOS. I used the following javascript code:

```auto
if (window.matchMedia('(display-mode: standalone)').matches) {
  return 'installed';
}
else {
  return 'not installed';
}

```

---

<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: [March 8, 2022, 1:19am UTC](https://community.glideapps.com/t/can-you-track-pwa-installs-in-google-analytics/24157/8 "2022-03-08T01:19:32Z")

</div>

Sweet! Thanks for sharing.
