我应该如何将分析集成到 PWA
网络应用程序?如果我将来自 google 分析的分析添加到 webapp 中并将其发布在服务器中,那么稍后,如果我想在 Google Play 商店上发布它,我应该如何跟踪使用情况?
这是场景:
PWA
从一个子域。 PWA
从 Google Play 商店作为 TWA
. 我的顾虑:
我应该使用 google 网络分析代码段来跟踪我的 Google Play 商店应用程序的基于子域的 pwa 和 firebase 分析吗?
或者,
我可以使用一种方法同时跟踪两个版本吗?
我找到了这个 faq of chrome developer关于
google analytics
的使用The CPA library follows the basic usage pattern of Google Analytics and will feel familiar to existing users of Google Analytics. However, unlike the web-centric official Google Analytics JavaScript libraries, the CPA library uses an "app-centric" model that is better suited for Packaged Apps. Among other features, the library provides methods for specific types of hits, such as "event" and "appView", and it can be used in both Closure-based and traditional JavaScript projects.
我正在使用
Vuejs
作为前端 pwa
模板,不确定它是否适用于我的用例。任何建议或方向将不胜感激。
最佳答案
关于google-analytics - 在 Play 商店中将 PWA 部署为 Web 应用程序和 TWA 时,如何处理 PWA 上的分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56222985/