跟踪Google Analytics(分析)中的Add to HomeScreen Web App(添加到HomeScreen网络应用) [英] Track Add To HomeScreen Web App in Google Analytics

查看:131
本文介绍了跟踪Google Analytics(分析)中的Add to HomeScreen Web App(添加到HomeScreen网络应用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个移动Web应用程序,其添加到主屏幕"功能运行良好.我正在尝试确定如何使用Google Analytics(分析)最好地跟踪那些将应用程序安装到其主屏幕的用户的应用程序使用情况.似乎没有默认的方法可以查看应用程序在分析中是否处于独立模式,Google Analytics(分析)是否有最佳做法来跟踪主屏幕上安装的应用程序?

I have a mobile web app with the Add to Home Screen functionality working well. I am trying to determine how to use Google Analytics to best track the app usage for those who have installed the app to their home screen. There doesn't seem to be a default way to see if an app is in standalone mode in analytics, is there a best practice for Google Analytics to track apps installed on the home screen?

推荐答案

您可以检测应用程序是否以PWA模式启动. 请参阅此答案有关操作方法. 知道您的应用程序以PWA模式运行后,您可以使用不同的跟踪ID 分别跟踪PWA应用程序,或者您可以使用相同的跟踪ID并使用

You can detect if the app is launched in PWA mode. Refer this answer on how to do it. Once you know your app is running in PWA mode, you can use a different tracking ID to track the PWA applications separately or you can use the same tracking ID and use the traffic source with appropriate value based on your PWA detection.

这篇关于跟踪Google Analytics(分析)中的Add to HomeScreen Web App(添加到HomeScreen网络应用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆