Commit e3d37d1
feat: add analytics tracking to VShare WebView
Add custom User-Agent and source parameter to track V2er app traffic
to VShare page for analytics purposes.
Changes:
- Set custom User-Agent: "Mozilla/5.0... V2er-Android/{version}"
- Add source parameter to URL: "?theme={theme}&source=v2er-android"
- Add getAppVersion() method to retrieve app version for User-Agent
This enables VShare page to:
1. Identify traffic from V2er Android app via User-Agent header
2. Track app version distribution
3. Filter analytics by source parameter
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent eba89d4 commit e3d37d1
File tree
1 file changed
+21
-6
lines changed1 file changed
+21
-6
lines changedLines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 108 | + | |
| 109 | + | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| |||
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
276 | 291 | | |
277 | 292 | | |
278 | 293 | | |
| |||
0 commit comments