24
24
25
25
### Add the line below to ` Packages/manifest.json `
26
26
27
- for version ` 1.0.3 `
27
+ for version ` 1.0.4 `
28
+
28
29
``` csharp
29
- " com.wolf-org.tracking" : " https://github.com/unity-package/app-tracking-unity.git#1.0.3 " ,
30
+ " com.wolf-org.tracking" : " https://github.com/unity-package/app-tracking-unity.git#1.0.4 " ,
30
31
```
31
32
32
33
## Use
33
34
34
35
#### Firebase Tracking
35
36
36
- - Add define symbols ` VIRTUESKY_FIREBASE_ANALYTIC ` to use ([ Get Firebase Analytic Sdk] ( https://github.com/firebase-unity/firebase-analytics ) )
37
+ - Add define symbols ` VIRTUESKY_FIREBASE_ANALYTIC ` to
38
+ use ([ Get Firebase Analytic Sdk] ( https://github.com/firebase-unity/firebase-analytics ) )
37
39
- Tracking event
40
+
38
41
``` csharp
39
42
static void TrackEvent (string eventName )
40
43
static void TrackEvent (string eventName , string parameterName , string parameterValue )
41
44
static void TrackEvent (string eventName , Dictionary < string , string > dictParameters )
42
45
static void TrackEvent (string eventName , Parameter [] parameters )
43
46
```
47
+
44
48
Example
45
49
46
50
``` csharp
@@ -84,6 +88,7 @@ Example
84
88
``` csharp
85
89
static void FirebaseAnalyticTrackRevenue (double value , string network , string unitId , string format , string adNetwork )
86
90
```
91
+
87
92
Example
88
93
89
94
``` csharp
@@ -103,6 +108,7 @@ Example
103
108
```
104
109
105
110
Example
111
+
106
112
``` csharp
107
113
void TrackingEventAdjust ()
108
114
{
@@ -111,9 +117,11 @@ Example
111
117
```
112
118
113
119
- Tracking ads revenue
120
+
114
121
``` csharp
115
122
static void AdjustTrackRevenue (double value , string network , string unitId , string placement , string adNetwork )
116
123
```
124
+
117
125
Example
118
126
119
127
``` csharp
@@ -125,7 +133,8 @@ Example
125
133
126
134
#### AppsFlyer Tracking
127
135
128
- - Add define symbol ` VIRTUESKY_APPSFLYER ` to use ([ Get Appsflyer Sdk] ( https://github.com/AppsFlyerSDK/appsflyer-unity-plugin ) , [ Get AppsFlyer AdRevenue] ( https://github.com/AppsFlyerSDK/appsflyer-unity-adrevenue-generic-connector ) )
136
+ - Add define symbol ` VIRTUESKY_APPSFLYER ` to
137
+ use ([ Get Appsflyer Sdk] ( https://github.com/AppsFlyerSDK/appsflyer-unity-plugin ) , [ Get AppsFlyer AdRevenue] ( https://github.com/AppsFlyerSDK/appsflyer-unity-adrevenue-generic-connector ) )
129
138
- Tracking event
130
139
131
140
``` csharp
@@ -160,6 +169,7 @@ Example
160
169
AppsFlyerTracking .TrackEvent (" WinGame" , dict );
161
170
}
162
171
```
172
+
163
173
- Tracking ads revenue
164
174
165
175
``` csharp
@@ -174,22 +184,28 @@ Example
174
184
AppsFlyerTrackingRevenue .AppsFlyerTrackRevenueAd (.. .);
175
185
}
176
186
```
187
+
177
188
- Tracking iap revenue
178
- Add define symbol ` VIRTUESKY_IAP ` to use
189
+ Add define symbol ` VIRTUESKY_IAP ` to use
190
+
179
191
``` csharp
180
192
static void AppFlyerTrackingRevenueInAppPurchase (Product product )
181
193
```
182
194
183
195
Example
196
+
184
197
``` csharp
185
198
void TrackingRevenue (Product productIAP )
186
199
{
187
200
AppsFlyerTrackingRevenue .AppFlyerTrackingRevenueInAppPurchase (productIAP );
188
201
}
189
202
```
203
+
190
204
#### App Tracking
191
205
192
- - Tracking ad revenue (If calling ` Track Revenue ` through ` App Tracking ` , revenue will be tracked in all of Firebase Analytics, Adjust, and AppsFlyer)
206
+ - Tracking ad revenue (If calling ` Track Revenue ` through ` App Tracking ` , revenue will be tracked in all of Firebase
207
+ Analytics, Adjust, and AppsFlyer)
208
+
193
209
``` csharp
194
210
static void TrackRevenue (double value , string network , string unitId , string format , string adNetwork )
195
211
```
@@ -203,7 +219,7 @@ Example
203
219
}
204
220
```
205
221
206
- - Firebase tracking ATT Results IOS (App Tracking Transparency)
222
+ - Firebase tracking ATT Results IOS (App Tracking Transparency)
207
223
- Require: ` "com.unity.ads.ios-support": "1.2.0" `
208
224
209
225
``` csharp
0 commit comments