Skip to content

Commit

Permalink
Add event logs to all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporiff committed Feb 8, 2024
1 parent 46a1d4d commit 9685bf5
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 0 deletions.
99 changes: 99 additions & 0 deletions src/content/docs/en/sdk/flutter/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,55 @@ Util.buildCupertinoButton('Track Simple Event',
const Padding(padding: const EdgeInsets.all(7.0))
```

```txt collapse={6-46} title="Event log"
Path: /event
ClientSdk: flutter4.38.0
Parameters:
android_uuid 781f17d5-5048-4fae-a4e5-77b58bab62b9
api_level 34
app_token 2fm9gkqubvpc
app_version 1.0
attribution_deeplink 1
callback_params {"key":"value","foo":"bar"}
connectivity_type 1
country US
cpu_type arm64-v8a
created_at 2024-01-25T14:13:16.151Z+0100
currency EUR
device_manufacturer Google
device_name sdk_gphone64_arm64
device_type phone
display_height 2205
display_width 1080
environment sandbox
event_buffering_enabled 0
event_count 3
event_token g3mfiw
gps_adid 5962dfc1-3a53-4692-850b-22c4bf4311a5
gps_adid_attempt 2
gps_adid_src service
hardware_name UE1A.230829.036
language en
mcc 310
mnc 260
needs_response_details 1
os_build UE1A.230829.036
os_name android
os_version 14
package_name com.adjust.examples
partner_params {"key":"value","foo":"bar"}
revenue 0.25
screen_density high
screen_format long
screen_size normal
session_count 2
session_length 23
subsession_count 1
time_spent 23
tracking_enabled 1
ui_mode 1
```

## Record event revenue

You can record revenue associated with an event by setting the revenue and currency properties on your event instance. Use this feature to record revenue-generating actions in your app.
Expand Down Expand Up @@ -116,6 +165,17 @@ Util.buildCupertinoButton('Track Revenue Event',
const Padding(padding: const EdgeInsets.all(7.0))
```

```txt title="Event log" {7,8}
Path: /event
ClientSdk: flutter4.38.0
Parameters:
environment sandbox
event_count 3
event_token abc123
revenue 0.25
currency EUR
```

## Unique events

You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate transaction IDs.
Expand Down Expand Up @@ -161,7 +221,16 @@ import 'util.dart';
Util.buildCupertinoButton('Track Revenue Event',
() => Adjust.trackEvent(Util.myAdjustEvent())),
const Padding(padding: const EdgeInsets.all(7.0))
```

```txt title="Event log" {7}
Path: /event
ClientSdk: flutter4.38.0
Parameters:
environment sandbox
event_count 3
event_token abc123
transaction_id 5e85484b-1ebc-4141-aab7-25b869e54c49
```

## Add callback parameters
Expand Down Expand Up @@ -244,6 +313,16 @@ Util.buildCupertinoButton('Track Callback Event',
const Padding(padding: const EdgeInsets.all(7.0))
```

```txt {4} title="Event log"
Path: /event
ClientSdk: flutter4.38.0
Parameters:
callback_params {"event_token":"g3mfiw","revenue_amount":"0.05"}
environment sandbox
event_count 1
event_token g3mfiw
```

## Add partner parameters

You can send extra information to your network partners by adding [partner parameters](https://help.adjust.com/en/article/data-sharing-ad-network#map-parameters).
Expand Down Expand Up @@ -302,6 +381,16 @@ Util.buildCupertinoButton('Track Partner Event',
const Padding(padding: const EdgeInsets.all(7.0))
```

```txt title="Event log" {4}
Path: /event
ClientSdk: flutter4.38.0
Parameters:
partner_params {"product_id":"29","user_id":"835"}
environment sandbox
event_count 1
event_token g3mfiw
```

## Add a callback identifier

You can add a custom string identifier to each event you want to measure. Adjust's servers can report on this identifier in event callbacks. This enables you to keep track of which events have been successfully measured.
Expand Down Expand Up @@ -345,3 +434,13 @@ Util.buildCupertinoButton('Track Callback Event',
() => Adjust.trackEvent(Util.myAdjustEvent())),
const Padding(padding: const EdgeInsets.all(7.0))
```

```txt title="Event log" {7}
Path: /event
ClientSdk: flutter4.38.0
Parameters:
environment sandbox
event_count 3
event_token g3mfiw
callback_id f2e728d8-271b-49ab-80ea-27830a215147
```
94 changes: 94 additions & 0 deletions src/content/docs/en/sdk/ios/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,49 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

```txt collapse={6-40} title="Event log"
Path: /event
ClientSdk: ios4.38.0
Parameters:
app_token 2fm9gkqubvpc
app_version 1.0
attribution_deeplink 1
callback_params {"key":"value","foo":"bar"}
connectivity_type 1
country US
cpu_type arm64-v8a
created_at 2024-01-25T14:13:16.151Z+0100
currency EUR
device_manufacturer Apple
device_type phone
display_height 2205
display_width 1080
environment sandbox
event_buffering_enabled 0
event_count 3
event_token g3mfiw
hardware_name UE1A.230829.036
language en
mcc 310
mnc 260
needs_response_details 1
os_build UE1A.230829.036
os_name ios
os_version 14
package_name com.adjust.examples
partner_params {"key":"value","foo":"bar"}
revenue 0.25
screen_density high
screen_format long
screen_size normal
session_count 2
session_length 23
subsession_count 1
time_spent 23
tracking_enabled 1
ui_mode 1
```

## Record event revenue

You can record revenue associated with an event by setting the revenue and currency properties on your event instance. Use this feature to record revenue-generating actions in your app.
Expand Down Expand Up @@ -202,6 +245,17 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

```txt title="Event log" {7,8}
Path: /event
ClientSdk: ios4.38.0
Parameters:
environment sandbox
event_count 3
event_token abc123
revenue 0.25
currency EUR
```

## Unique events

You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate transaction IDs.
Expand Down Expand Up @@ -293,6 +347,16 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

```txt title="Event log" {7}
Path: /event
ClientSdk: ios4.38.0
Parameters:
environment sandbox
event_count 3
event_token abc123
transaction_id 5e85484b-1ebc-4141-aab7-25b869e54c49
```

## Add callback parameters

If you [register a callback URL](https://help.adjust.com/en/article/set-up-callbacks) in the Adjust dashboard, the SDK sends a GET request to your callback URL when it records an event.
Expand Down Expand Up @@ -419,6 +483,16 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

```txt {4} title="Event log"
Path: /event
ClientSdk: ios4.38.0
Parameters:
callback_params {"event_token":"g3mfiw","revenue_amount":"0.05"}
environment sandbox
event_count 1
event_token g3mfiw
```

## Add partner parameters

You can send extra information to your network partners by adding [partner parameters](https://help.adjust.com/en/article/data-sharing-ad-network#map-parameters).
Expand Down Expand Up @@ -522,6 +596,16 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

```txt title="Event log" {4}
Path: /event
ClientSdk: ios4.38.0
Parameters:
partner_params {"product_id":"29","user_id":"835"}
environment sandbox
event_count 1
event_token g3mfiw
```

## Add a callback identifier

You can add a custom string identifier to each event you want to measure. Adjust's servers can report on this identifier in event callbacks. This enables you to keep track of which events have been successfully measured.
Expand Down Expand Up @@ -610,3 +694,13 @@ class ViewControllerSwift: UIViewController {

</Tab>
</Tabs>

```txt title="Event log" {7}
Path: /event
ClientSdk: ios4.38.0
Parameters:
environment sandbox
event_count 3
event_token g3mfiw
callback_id f2e728d8-271b-49ab-80ea-27830a215147
```
89 changes: 89 additions & 0 deletions src/content/docs/en/sdk/react-native/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,55 @@ function _onPress_trackRevenueEvent() {
</>;
```

```txt collapse={6-46} title="Event log"
Path: /event
ClientSdk: reactnative4.38.0
Parameters:
android_uuid 781f17d5-5048-4fae-a4e5-77b58bab62b9
api_level 34
app_token 2fm9gkqubvpc
app_version 1.0
attribution_deeplink 1
callback_params {"key":"value","foo":"bar"}
connectivity_type 1
country US
cpu_type arm64-v8a
created_at 2024-01-25T14:13:16.151Z+0100
currency EUR
device_manufacturer Google
device_name sdk_gphone64_arm64
device_type phone
display_height 2205
display_width 1080
environment sandbox
event_buffering_enabled 0
event_count 3
event_token g3mfiw
gps_adid 5962dfc1-3a53-4692-850b-22c4bf4311a5
gps_adid_attempt 2
gps_adid_src service
hardware_name UE1A.230829.036
language en
mcc 310
mnc 260
needs_response_details 1
os_build UE1A.230829.036
os_name android
os_version 14
package_name com.adjust.examples
partner_params {"key":"value","foo":"bar"}
revenue 0.25
screen_density high
screen_format long
screen_size normal
session_count 2
session_length 23
subsession_count 1
time_spent 23
tracking_enabled 1
ui_mode 1
```

## Unique events

You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate transaction IDs.
Expand Down Expand Up @@ -119,6 +168,16 @@ function _onPress_trackRevenueEvent() {
</>;
```

```txt title="Event log" {7}
Path: /event
ClientSdk: reactnative4.38.0
Parameters:
environment sandbox
event_count 3
event_token abc123
transaction_id 5e85484b-1ebc-4141-aab7-25b869e54c49
```

## Add callback parameters

If you [register a callback URL](https://help.adjust.com/en/article/set-up-callbacks) in the Adjust dashboard, the SDK sends a GET request to your callback URL when it records an event.
Expand Down Expand Up @@ -184,6 +243,16 @@ function _onPress_trackCallbackEvent() {
</>;
```

```txt {4} title="Event log"
Path: /event
ClientSdk: reactnative4.38.0
Parameters:
callback_params {"event_token":"g3mfiw","revenue_amount":"0.05"}
environment sandbox
event_count 1
event_token g3mfiw
```

## Add partner parameters

You can send extra information to your network partners by adding [partner parameters](https://help.adjust.com/en/article/data-sharing-ad-network#map-parameters).
Expand Down Expand Up @@ -227,6 +296,16 @@ function _onPress_trackPartnerEvent() {
</>;
```

```txt title="Event log" {4}
Path: /event
ClientSdk: reactnative4.38.0
Parameters:
partner_params {"product_id":"29","user_id":"835"}
environment sandbox
event_count 1
event_token g3mfiw
```

## Add a callback identifier

You can add a custom string identifier to each event you want to measure. Adjust's servers can report on this identifier in event callbacks. This enables you to keep track of which events have been successfully measured.
Expand Down Expand Up @@ -259,3 +338,13 @@ function _onPress_trackUniqueCallbackEvent() {
</View>
</>;
```

```txt title="Event log" {7}
Path: /event
ClientSdk: reactnative4.38.0
Parameters:
environment sandbox
event_count 3
event_token g3mfiw
callback_id f2e728d8-271b-49ab-80ea-27830a215147
```
Loading

0 comments on commit 9685bf5

Please sign in to comment.