Skip to content

Commit 5b7df8d

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Analytics for Node.js
33
redirect_from: '/connections/sources/catalog/libraries/server/node-js/'
4-
repo: analytics-node
4+
repo: analytics-next
55
strat: node-js
66
---
77

8-
Segment's Analytics Node.js 2.0 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.
8+
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.
99

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

@@ -42,7 +42,7 @@ All of Segment's server-side libraries are built for high-performance, so you ca
4242
const analytics = new Analytics({ writeKey: '<YOUR_WRITE_KEY>' })
4343
```
4444
45-
Be sure to replace `YOUR_WRITE_KEY` with your actual **Write Key** which you can find in Segment under your source settings.
45+
Be sure to replace `YOUR_WRITE_KEY` with your actual **Write Key** which you can find in Segment by navigating to: **Connections > Sources** and selecting your source and going to the **Settings** tab.
4646
4747
This creates an instance of `Analytics` that you can use to send data to Segment for your project. The default initialization settings are production-ready and queue 20 messages before sending any requests. In development you might want to use [development settings](/docs/connections/sources/catalog/libraries/server/node/#development).
4848
@@ -288,7 +288,7 @@ Setting | Details
288288
`flushInterval` _number_ | The number of milliseconds to wait before flushing the queue automatically. The default is: `10000`
289289
`httpRequestTimeout` | The maximum number of milliseconds to wait for an http request. The default is: `10000`
290290
291-
### Graceful shutdown
291+
## Graceful shutdown
292292
Avoid losing events after shutting down your console. Call `.closeAndFlush()` to stop collecting new events and flush all existing events. If a callback on an event call is included, this also waits for all callbacks to be called, and any of their subsequent promises to be resolved.
293293
294294
```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ strat: node-js
55
---
66

77
> warning "Deprecation of Analytics Node.js Classic"
8-
> On [date], 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 Analytics Node.js 2.0. See the [Analytics Node.js 2.0] docs to learn more.
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.
99
1010
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.
1111

0 commit comments

Comments
 (0)