This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
Please add an option field at /admin.php?pwa/ to allow admin entry of a value for utm_source variable added to the PWA start_url for automatic and simple Google Analytics tracking of PWA usage. The current start_url is just ?_pwa=1 which is not easy and friendly for google analytics. Making it...
Please add an option field at /admin.php?pwa/ to allow admin entry of a value for utm_source variable added to the PWA start_url for automatic and simple Google Analytics tracking of PWA usage. The current start_url is just ?_pwa=1 which is not easy and friendly for google analytics. Making it...
From what I gathered from blogs, PWA has a different method to track by using a service worker.
When it comes to PWAs, there’s an additional element: the service worker. It resides between the server and browser, adding a new layer of background functionality to mimic app-like features (e.g., push notifications for food-delivery status from a restaurant website).
From Google, it suggests a separate property for a webpage and an app. I'm just passing it along that we should follow standards as Xenforo has never deviated from that. This probably makes organization easier to implement different views for an app for tracking purposes. Say, you want to track XFRM separately from the forum, you could do so with a different view under the app property.
The blogs would still state that PWA should be treated as separate property. Also, since it should have a service worker, that component might be missing to report each action that is taken (page views, etc.). I'm not too certain what XF has set up for a service worker to report in the PWA. However, the PWA should be on another property or you are mixing PWA and web visits into one. You can only use utm_source for very few things as opposed to a new property, I think. I would need clarification on this as it is new to me and I am only going by what blogs and Google suggest.
There isn't a 100% reliable way to determine if a certain request originated "from the browser" or "from the PWA", see https://stackoverflow.com/questions/41742390/javascript-to-check-if-pwa-or-mobile-web
Especially if a PWA is launched with display-mode browser (XenForo by default does not do that, but it would be possible) there is no way to distinguish between "PWA" and "Browser".
So as there is no reliable way to detect this, it isn't even possible to reliably use a different property ID for "PWA usage".
If a certain amout of false attribution would be acceptable, it would be just a matter of a template modification to switch between property IDs.