Skip to content

Commit 405509b

Browse files
markzegarellibot-docsteamtcgilbertGavin-Fitzpatrickstayseesong
authored
Release 22.20.2 (#2927)
* Update index.md (#2920) add missing "title" header * Session Id and Session Number using gtag * Update index.md * Update index.md * Update index.md * Fix Intercom connection modes (#2923) * Fix Intercom connection modes * Update src/connections/destinations/catalog/intercom/index.md Co-authored-by: stayseesong <[email protected]> Co-authored-by: stayseesong <[email protected]> * Bump nokogiri from 1.13.4 to 1.13.6 (#2924) Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.4 to 1.13.6. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](sparklemotion/nokogiri@v1.13.4...v1.13.6) --- updated-dependencies: - dependency-name: nokogiri dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update documentation about testing (#2917) * Update documentation about testing * Update src/connections/sources/catalog/libraries/server/python/index.md Co-authored-by: markzegarelli <[email protected]> Co-authored-by: markzegarelli <[email protected]> * Apply suggestions from code review * fixes Co-authored-by: Segment Docs Robot <[email protected]> Co-authored-by: Thomas Gilbert <[email protected]> Co-authored-by: Gavin-Fitzpatrick <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: g-normand <[email protected]> Co-authored-by: stayseesong <[email protected]>
1 parent 3d24d78 commit 405509b

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

Gemfile.lock

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ GEM
104104
mercenary (0.4.0)
105105
mini_portile2 (2.8.0)
106106
multipart-post (2.1.1)
107-
nokogiri (1.13.4)
107+
nokogiri (1.13.6)
108108
mini_portile2 (~> 2.8.0)
109109
racc (~> 1.4)
110-
nokogiri (1.13.4-x86_64-darwin)
110+
nokogiri (1.13.6-x86_64-darwin)
111111
racc (~> 1.4)
112-
nokogiri (1.13.4-x86_64-linux)
112+
nokogiri (1.13.6-x86_64-linux)
113113
racc (~> 1.4)
114114
pathutil (0.16.2)
115115
forwardable-extended (~> 2.6)

src/_data/catalog/overrides.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ items:
5151
connection_modes:
5252
device:
5353
web: true
54-
mobile: false
54+
mobile: true
5555
server: false
5656
cloud:
5757
web: false

src/connections/destinations/catalog/actions-google-analytics-4/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ The Google Analytics 4 reports only display active users who engage with your si
8181

8282
If you choose to integrate with Google Analytics 4 client-side (using Gtag outside of Segment) _and_ also use Segment's Google Analytics 4 destination to send events through the API, you can track sessions server-side. When using Gtag, [Google generates a `session_id` and `session_number` when a session begins](https://support.google.com/analytics/answer/9191807?hl=en){:target='_blank'}. The `session_id` and `session_number` generated on the client can be passed as Event Parameters to stitch events sent through the API with the same session that was collected client-side.
8383

84+
You can double-check your session_id and session_number with the [Google Site Tag function](https://developers.google.com/tag-platform/gtagjs/reference){:target='_blank'} or by running this script in your JavaScript console and replacing `G-xxxxxxxxxx` with your GA4 measurement ID:
85+
86+
```java
87+
const sessionIdPromise = new Promise(resolve => {
88+
gtag('get', 'G-xxxxxxxxxx', 'session_id', resolve)
89+
});
90+
const sessionNumPromise = new Promise(resolve => {
91+
gtag('get', 'G-xxxxxxxxxx', 'session_number', resolve)
92+
});
93+
94+
Promise.all([sessionIdPromise, sessionNumPromise]).then(function(session_data) {
95+
console.log("session ID: "+session_data[0]);
96+
console.log("session Number: "+session_data[1]);
97+
});
98+
```
99+
84100
> info "Session tracking limitations"
85101
> Session tracking server-side only works if you're also sending data to Google Analytics 4 client-side. This is because the `session_id` must match a value that was previously collected on the client. For events to stitch properly, they must arrive within a 48 hour window of when the client-side events arrived.
86102
>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Blitzllama
2+
title: Blitzllama
33
rewrite: true
44
id: 616d3b0494950977f91f81a4
55
---
@@ -47,4 +47,4 @@ analytics.group("0e8c78ea9d97a7b8185e8632", {
4747
});
4848
```
4949

50-
Segment sends Groups calls to Blitzllama as a `group` event.
50+
Segment sends Groups calls to Blitzllama as a `group` event.

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

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,14 @@ id: 54521fd725e721e32a72eec6
99

1010
## Getting Started
1111

12-
The first step is to make sure Intercom supports the source type and connection mode you've chosen to implement. You can learn more about what dictates [the connection modes we support here](/docs/connections/destinations/#connection-modes).
13-
14-
<table>
15-
<tr>
16-
<th></th>
17-
<th>Web</th>
18-
<th>Mobile</th>
19-
<th>Server</th>
20-
</tr>
21-
<tr>
22-
<td>📱 Device-based</td>
23-
<td> ✅ </td>
24-
<td> ✅ </td>
25-
<td></td>
26-
</tr>
27-
<tr>
28-
<td>☁️ Cloud-based</td>
29-
<td></td>
30-
<td> ✅ </td>
31-
<td> ✅ </td>
32-
</tr>
33-
</table>
3412

3513
1. From your Segment UI's Destinations page click **Add Destination**.
3614
2. Search for "Intercom" and select it in the results that appear.
3715
3. Choose which Source to connect Intercom to.
38-
3. Authorize your Intercom account in Segment and select the Intercom Account to sync with Segment.
16+
4. Authorize your Intercom account in Segment and select the Intercom Account to sync with Segment.
3917

4018
You can choose which account to sync from the drop down menu in the top right. If you are using [server-side sources](/docs/connections/sources#server), Segment starts passing data through once you activate the Destination. For other libraries continue reading below.
41-
4. Find your "App ID" in the Intercom UI following [the instructions here](https://docs.intercom.com/faqs-and-troubleshooting/getting-set-up/where-can-i-find-my-app-id) or by navigating to the Gear Menu and clicking on "App Settings" followed by "API Keys". It should look something like `9iefb489`.
19+
5. Find your "App ID" in the Intercom UI following [the instructions here](https://docs.intercom.com/faqs-and-troubleshooting/getting-set-up/where-can-i-find-my-app-id){:target="_blank"} or by navigating to the Gear Menu and clicking on "App Settings" followed by "API Keys". It should look something like `9iefb489`.
4220

4321

4422
Your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading Intercom's `library.js` onto your page.

src/connections/sources/catalog/libraries/server/python/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ analytics.debug = True
4545
analytics.on_error = on_error
4646
```
4747

48+
If you don't want to send information to Segment during testing, add the following code to your test:
49+
50+
```python
51+
analytics.send = False
52+
```
53+
4854
**Using Django?** Check out the [Django docs](/docs/connections/sources/catalog/libraries/server/python/#django).
4955

5056
## Identify

0 commit comments

Comments
 (0)