Hi Gigazelle
We made some testing with developers and figured out a way to solve it.
You can't use "SDK" since PWA are just a "copy" of the website (or part of it, defined by website) and they run on local device in a "browser".
Solution right now:
we added some javascript to the website which gets triggered when a user "installs" the app (using _satellite.track and a DCR). works quite good on Android, no chance on iPhone. the reason for iPhone is that you do not "download" the app, you use the "add to homescreen" in the browser. we didn't find a way to track this action with javascript (since it is the same as you would add a URL as shortcut to the homescreen).
not working (yet)
- tracking usage of PWA: there should be a environment variable in the window object who holds information if it is a PWA, but doesn't work right now
- tracking "offline browing" since this is not yet implemented. butI think we just write the calls in cache and send it with timestamp to analytics as soon as user is online again...
If anybody has more information hwo to get the missing triggers, I would love to hear!
thanks