Skip to content

Commit

Permalink
Updated the DOCs and linking latest AF SDK version for Segment
Browse files Browse the repository at this point in the history
  • Loading branch information
af-fess committed Jan 28, 2019
1 parent 554ac26 commit 02641dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# AppsFlyer - Segment Integration

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.appsflyer/segment-android-integration/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.appsflyer/segment-android-integration)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.appsflyer/segment-android-integration/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.appsflyer/segment-android-integration)

----------
In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com
Expand All @@ -21,7 +21,7 @@ You can track installs, updates and sessions and also track additional in-app ev

---

Built with AppsFlyer Android SDK `v4.8.14`
Built with AppsFlyer Android SDK `v4.8.19`

## Table of content

Expand Down Expand Up @@ -76,6 +76,7 @@ AppsFlyer supports the `identify` and `track` methods.
Add the AppsFlyer Segment Integration dependency to your app `build.gradle` file.
```java
compile 'com.appsflyer:segment-android-integration:1.+'
compile 'com.android.installreferrer:installreferrer:1.0'
```

#### 2.2) Setting the Required Permissions
Expand All @@ -88,9 +89,9 @@ The AndroidManifest.xml should include the following permissions:
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
```

#### 2.2) Init AppsFlyer:
### <a id="sdk_init"> 2.2) Init AppsFlyer

```java
```java

static final String SEGMENT_WRITE_KEY = "<YOUR_KEY>";

Expand All @@ -117,13 +118,12 @@ Analytics.setSingletonInstance(analytics);
```

Adding `.trackAttributionInformation()` will send the `Install Attributed` event to AppsFlyer.
Adding `.trackApplicationLifecycleEvents()` will send `Application Opened` , `Application Updated` and `Application Installed` events to AppsFlyer.
Adding `.trackApplicationLifecycleEvents()` will send `Application Opened` , `Application Updated` and `Application Installed` events to AppsFlyer.



### <a id="adding_events">

## Track
## <a id="adding_events"> Track

When you call `track`, Segment translates it automatically and sends the event to AppsFlyer.

Expand All @@ -143,7 +143,7 @@ Analytics analytics = Analytics.with(this);
Properties properties = new Properties();
properties.putAll(eventValue);

analytics.track("purchase", properties);
analytics.track("purchase", properties);
```

Note: AppsFlyer will map `revenue -> af_revenue` and `currency -> af_currency`.
Expand Down
4 changes: 2 additions & 2 deletions segmenttestapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ dependencies {
compile 'com.android.support:appcompat-v7:26.1.0'
//noinspection GradleDynamicVersion
compile 'com.segment.analytics.android:analytics:4.+'
//compile 'com.appsflyer:segment-android-integration:1.10'
compile 'com.appsflyer:segment-android-integration:1.14'
compile 'com.android.installreferrer:installreferrer:1.0'
compile project(':app')
//compile project(':app')
// compile 'com.google.firebase:firebase-crash:9.4.0'
//compile 'com.appsflyer:af-android-sdk:4.7.4'
}
Expand Down

0 comments on commit 02641dc

Please sign in to comment.