Skip to content

Commit 2756ad3

Browse files
author
markzegarelli
authored
Add the NPM option to A.js quickstart (#2306)
1 parent 23cd2d5 commit 2756ad3

File tree

1 file changed

+4
-1
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+4
-1
lines changed

src/connections/sources/catalog/libraries/website/javascript/quickstart.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ Next create an Analytics.js source from your Workspace:
2222
When you create a Source in the Segment web app, it tells the Segment servers that you'll be sending data from a specific source type. When you create (or change!) a Source in the Segment app, Segment generates a new Write Key for that source. You use the write key in your website code to tell Segment servers where the data is coming from, so Segment can route it to your Destinations and other tools.
2323

2424

25-
## Step 2: Copy the Segment Snippet
25+
## Step 2: Add the Segment Snippet
26+
27+
> success "Install Segment as an NPM package"
28+
> You can add Segment to your project as an [NPM package](https://www.npmjs.com/package/@segment/snippet){:target="_blank"}. For more information, see the instructions on [GitHub](https://github.com/segmentio/analytics-next#-using-as-an-npm-package){:target="_blank"}.
2629
2730
Paste this snippet into the `<head>` tag of your site to install Segment.
2831

0 commit comments

Comments
 (0)