Skip to content

Commit 6a5f650

Browse files
authored
Merge branch 'master' into thomas/screeb_new_integration
2 parents e34c43a + 313fda5 commit 6a5f650

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

src/connections/destinations/catalog/firebase/index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,42 @@ If you use Segment's React Native source library, you must explicitly bundle the
114114

115115
<!-- LR Mar 2021: We didn't use the react-dest include here because Firebase needs the extra build.gradle step.-->
116116

117+
## Setting up Firebase with Analytics-Kotlin
118+
If you're using the [Analytics-Kotlin library](/docs/connections/sources/catalog/libraries/mobile/kotlin-android), follow these steps to set up Firebase with Analytics-Kotlin:
119+
1. In your top-level `build.gradle` file add these lines:
120+
```kotlin
121+
buildscript {
122+
...
123+
repositories {
124+
google()
125+
}
126+
dependencies {
127+
...
128+
classpath 'com.google.gms:google-services:4.3.5'
129+
}
130+
}
131+
```
132+
2. In your app-module `build.gradle` file add these lines:
133+
```kotlin
134+
...
135+
plugins {
136+
id 'com.google.gms.google-services'
137+
}
138+
139+
dependencies {
140+
...
141+
implementation platform('com.google.firebase:firebase-bom:28.2.1')
142+
implementation 'com.google.firebase:firebase-analytics-ktx'
143+
}
144+
```
145+
3. Copy the [FirebaseDestination.kt](https://github.com/segmentio/analytics-kotlin/blob/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins/FirebaseDestination.kt) file into your project's codebase.
146+
4. Copy your `google-service.json` file to your app-module.
147+
5. Go to your project's codebase and add these lines where you intialize the analytics client:
148+
```kotlin
149+
val Firebase = FirebaseDestination()
150+
analytics.add(Firebase)
151+
```
152+
117153
## Identify
118154
119155
When you call `identify` Segment will map to the corresponding Firebase Analytics calls:

src/personas/journeys/faq-best-practices.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@ The data type you send to a destination depends on whether the destination is an
8080

8181
### Which roles can access Journeys?
8282
For Personas Advanced customers, users with either the Personas User or Personas Admin roles can create, edit, and delete journeys. Users with the Personas Read-only role are restricted to view-only access.
83+
84+
### Why am I seeing duplicate entry or exit events?
85+
86+
Journeys triggers audience or trait-related events for each email `external_id` on a profile. If a profile has two email addresses, you'll see two Audience Entered and two Audience Exited events for each Journey step. Journeys sends both email addresses to downstream destinations.

src/personas/journeys/key-terms.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,18 @@ Keep the following terms in mind as you begin to explore Journeys.
3838
| Draft Journey | A Journey which is not yet computing nor sending data to destinations. <br /><br />For more information, see [Draft Journeys](#draft-journeys). |
3939
| Published (live) Journey | A Journey that is computing and sending data to destinations. <br /><br />For more information, see [Published Journeys](#published-journeys). |
4040

41+
## Steps with Audiences
4142

43+
| Step | Audience definition |
44+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ |
45+
| Entry condition | All users who fulfill the entry condition criteria. "Use Historical Data" evaluates events before Journey publication. |
46+
| Condition | All users who fulfill condition criteria, at one point fulfilled preceding step criteria, and have met any step wait conditions. |
47+
| Destination Sync | All users who, at one point, fulfilled parent step criteria and have met any following wait conditions. |
4248

49+
## Steps without Audiences
50+
51+
| Step | Details |
52+
| ------------------- | ------------------------------------------------------------------------------------------------------------------ |
53+
| Delay | No audience. Segment appends the wait duration as a condition to the following step’s audience. |
54+
| T/F split | The split's resulting conditions contain two mutually exclusive audiences. The split node itself has no audience. |
55+
| Multi-branch splits | The split's resulting conditions contain audiences. The split node itself has no audience. |

0 commit comments

Comments
 (0)