File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
UserReport/UserReport/Network Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,11 @@ internal class Network {
87
87
anonymousTracking: Bool ,
88
88
completion: @escaping ( ( Result < Void , Error > ) -> Void ) )
89
89
{
90
- //https://visitanalytics.userreport.com/hit.gif?t=[kitTcode]&rnd=%RANDOM%&d=IDFA&med=app_name&idfv=identifierForVendor&iab_consent=hardcodedConsent
90
+ //https://visitanalytics.userreport.com/hit.gif?t=[kitTcode]&rnd=%RANDOM%&d=IDFA&med=app_name&appver=app_ver+app_build& idfv=identifierForVendor&iab_consent=hardcodedConsent
91
91
let appName = Bundle . main. infoDictionary![ kCFBundleNameKey as String ] as! String
92
+ let appVersion = Bundle . main. infoDictionary![ " CFBundleShortVersionString " ] as! String
93
+ let appBuild = Bundle . main. infoDictionary![ kCFBundleVersionKey as String ] as! String
94
+ let appFullVersion = appVersion + " . " + appBuild
92
95
93
96
let tCode = " t= \( tCode) & "
94
97
let random = arc4random_uniform ( UInt32 . max)
@@ -98,7 +101,7 @@ internal class Network {
98
101
let idForVendor = anonymousTracking ? " " : UIDevice . current. identifierForVendor!. uuidString
99
102
100
103
let trackingUrl = anonymousTracking ? self . server. doNotTrackUrl : self . server. trackUrl
101
- var urlString = " \( trackingUrl) /hit.gif? \( tCode) rnd= \( random) &d= \( idfa) &med= \( appName) &idfv= \( idForVendor) "
104
+ var urlString = " \( trackingUrl) /hit.gif? \( tCode) rnd= \( random) &d= \( idfa) &med= \( appName) &appver= \( appFullVersion ) & idfv=\( idForVendor) "
102
105
103
106
if let consent = info. mediaSettings? . hardcodedConsent {
104
107
urlString. append ( " &iab_consent= \( consent) " )
You can’t perform that action at this time.
0 commit comments