Skip to content

Commit b5d18b5

Browse files
committed
edits [netlify-build]
1 parent 5b7df8d commit b5d18b5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/connections/sources/catalog/libraries/server/node/classic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ strat: node-js
55
hidden: true
66
---
77

8-
> warning "Deprecation of Analytics Node.js Classic"
9-
> On April 1, 2023, Segment will end support for Analytics Node.js Classic, which includes versions 6.2.0 and older. Upgrade to the new version of Analytics Node.js. See the updated [Analytics Node.js docs](/docs/connections/sources/catalog/libraries/server/node) to learn more.
8+
> info "Upgrade to the new version of Analytics Node.js"
9+
> Upgrade to the new version of Analytics Node.js. See the updated [Analytics Node.js docs](/docs/connections/sources/catalog/libraries/server/node) to learn more.
1010
1111
Segment's Node.js library lets you record analytics data from your node code. The requests hit Segment's servers, and then Segment routes your data to any destinations you have enabled.
1212

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ repo: analytics-next
55
strat: node-js
66
---
77

8+
> info ""
9+
> This version of Analytics for Node.js is in beta and Segment is actively working on this feature. Segment's [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this feature. If you’re using the classic version of Analytics for Node.js, you can refer to the documentation [here](/docs/connections/sources/catalog/libraries/server/node/classic).
10+
811
Segment's Analytics Node.js library lets you record analytics data from your node code. The requests hit Segment's servers, and then Segment routes your data to any destinations you have enabled.
912

1013
The [Segment Analytics Node.js Next library is open-source](https://github.com/segmentio/analytics-next/tree/master/packages/node){:target="_blank"} on GitHub.
1114

1215
All of Segment's server-side libraries are built for high-performance, so you can use them in your web server controller code. This library uses an internal queue to make `identify` and `track` calls non-blocking and fast. It also batches messages and flushes asynchronously to Segment's servers.
1316

14-
> info "Using Analytics for Node.js Classic?"
15-
> If you’re still using the classic version of Analytics for Node.js, you can refer to the documentation [here](/docs/connections/sources/catalog/libraries/server/node/classic).
16-
> <br><br>On April 1, 2023, Segment will end support for Analytics Node.js Classic, which includes versions 6.2.0 and older. Upgrade to new Analytics Node.js. See the updated [Analytics Node.js quickstart guide](/docs/connections/sources/catalog/libraries/server/node/quickstart/) to learn more.
17-
1817
## Getting Started
1918

2019
> warning ""
@@ -504,7 +503,6 @@ Every method you call **doesn't** result in a HTTP request, but is queued in mem
504503
505504
By default, Segment's library will flush:
506505
507-
- The very first time it gets a message.
508506
- Every 15 messages (controlled by `settings.maxEventsInBatch`).
509507
- If 10 seconds has passed since the last flush (controlled by `settings.flushInterval`)
510508
@@ -516,7 +514,8 @@ If you don't want to batch messages, you can turn batching off by setting the `m
516514
const analytics = new Analytics({
517515
...
518516
maxEventsInBatch: 1
519-
});```
517+
});
518+
```
520519
521520
Batching means that your message might not get sent right away. Every method call takes an optional `callback`, which you can use to know when a particular message is flushed from the queue, like so:
522521

src/connections/sources/catalog/libraries/server/node/quickstart.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ redirect_from: '/connections/sources/catalog/libraries/server/node-js/quickstart
44
strat: node-js
55
---
66

7-
> warning "Deprecation of Analytics Node.js Classic"
8-
> On April 1, 2023, Segment will end support for [Analytics Node.js Classic](/docs/connections/sources/catalog/libraries/server/node/classic/), which includes versions 6.2.0 and older. Upgrade to new Analytics Node.js. See the [updated Analytics Node.js docs](/docs/connections/sources/catalog/libraries/server/node/) to learn more.
7+
> info ""
8+
> This version of Analytics for Node.js is in beta and Segment is actively working on this feature. Segment's [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this feature.
9+
> <br><br> If you’re using the [classic version of Analytics for Node.js](/docs/connections/sources/catalog/libraries/server/node/classic/), consider upgrading to the [latest Analytics for Node.js library](/docs/connections/sources/catalog/libraries/server/node).
910
1011
This tutorial will help you start sending data from your Node servers to Segment and any destination, using Segment's Node library. Check out the full documentation for [Analytics Node.js](/docs/connections/sources/catalog/libraries/server/node) to learn more.
1112

0 commit comments

Comments
 (0)