Skip to content

Commit a78bd44

Browse files
committed
quickstart edits
1 parent 288b142 commit a78bd44

File tree

1 file changed

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

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Want to learn more? Check out the [Analytics.js reference](/docs/connections/sou
1010

1111
## Step 1: Create a source in the Segment app
1212

13-
Before you begin, you need a Workspace (which is a container that holds all of the Sources and Destinations that are billed together for an organization). You can sign up for a free Segment account and create a workspace.
13+
Before you begin, you need a workspace (which is a container that holds all of the Sources and Destinations that are billed together for an organization). You can sign up for a free Segment account and create a workspace.
1414

15-
To create an Analytics.js source source in the Segment app:
15+
To create an Analytics.js source in the Segment app:
1616
1. Click **Add Source**.
1717
2. From the source catalog page, click **JavaScript**.
1818
3. Click **Add Source** again from the informational panel that appears to the right.
1919
4. Give the source a display name, and enter the URL the source will collect data from.
2020

21-
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.
21+
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.
2222

2323

2424
## Step 2: Install Segment to your site
@@ -28,12 +28,12 @@ You can choose to install Segment to your site in 1 of 2 ways:
2828
[a. Add the Segment snippet to your app](#step-2a-add-the-segment-snippet)
2929

3030

31-
[b. Install Segment as a NPM package](#step-2b-install-segment-as-a-npm-package)
31+
[b. Install Segment as an NPM package](#step-2b-install-segment-as-a-npm-package)
3232

3333
### Step 2a: Add the Segment Snippet
3434

3535
> info ""
36-
> You can find the latest version of the Segment snippet in the **Overview** tab of your Javascript source.
36+
> You can find the latest version of the Segment snippet in the **Overview** tab of your JavaScript source.
3737
3838
To add the Segment snippet to your app:
3939

@@ -53,11 +53,11 @@ Note that you should remove other native third-party destination code that you m
5353
> info ""
5454
> If you only want the most basic Google Analytics setup, there's no need to continue with the setup. Just toggle on Google Analytics in the Segment interface.
5555
56-
A lot of analytics and marketing tools need to record who each user is on your site. If you want to use any tool that deals with the identity of your users, read on about the Identify method.
56+
Many analytics and marketing tools need to record who each user is on your site. If you want to use any tool that deals with the identity of your users, read on about the Identify method.
5757

58-
### Step 2b: Install Segment as a npm package
58+
### Step 2b: Install Segment as an npm package
5959

60-
To install Segment as a npm package:
60+
To install Segment as an npm package:
6161

6262
1. Install the analytics package.
6363

@@ -92,11 +92,11 @@ For more initialization patterns and general information on `@segment/analytics-
9292
> info ""
9393
> For any of the different methods described in this quickstart, you can replace the properties and traits in the code samples with variables that represent the data collected.
9494
95-
The Identify method is how you tell Segment who the current user is. It includes a unique User ID, and any optional traits you know about them. You can read more about it in the [identify method reference](/docs/connections/sources/catalog/libraries/website/javascript#identify).
95+
The Identify method is how you tell Segment who the current user is. It includes a unique User ID, and any optional traits you know about them. You can read more about it in the [Identify method reference](/docs/connections/sources/catalog/libraries/website/javascript#identify).
9696
9797
You don't need to call Identify for anonymous visitors to your site. Segment automatically assigns them an `anonymousId`, so just calling `page` and `track` works just fine without Identify.
9898
99-
Here's what a basic call to Identify might look like:
99+
Here's what a basic Identify call might look like:
100100
101101
```js
102102
analytics.identify('f4ca124298', {
@@ -125,12 +125,12 @@ With that call in your page footer, you successfully identify every user that vi
125125
126126
If you only want to use a basic CRM setup, you can stop here. Just enable Salesforce, Intercom, or any other CRM system from your Segment workspace, and Segment starts sending all of your user data to it.
127127
128-
A lot of analytics tools record more than just _identities_ as they record the actions each user performs too. If you're looking for a complete event tracking analytics setup, keep reading...
128+
A lot of analytics tools record more than just _identities_ as they record the actions each user performs too. If you're looking for a complete event tracking analytics setup, keep reading.
129129
130130
131131
## Step 4: Track actions
132132
133-
The Track method is how you tell Segment about the actions your users are performing on your site. Every action triggers what's called an "event", which can also have associated properties. You can read more about Track in the [track method reference](/docs/connections/sources/catalog/libraries/website/javascript#track).
133+
The Track method is how you tell Segment about the actions your users are performing on your site. Every action triggers what's called an "event", which can also have associated properties. You can read more about Track in the [Track method reference](/docs/connections/sources/catalog/libraries/website/javascript#track).
134134
135135
Here's what a call to a Track call might look like when a user signs up:
136136
@@ -150,7 +150,7 @@ analytics.track('Article Bookmarked', {
150150
});
151151
```
152152
153-
If you're just getting started, some of the events you should track are events that indicate the success of your site, like **Signed Up**, **Item Purchased** or **Article Bookmarked**.
153+
If you're just getting started, some of the events you should track are events that indicate the success of your site, like **Signed Up**, **Item Purchased**, or **Article Bookmarked**.
154154
155155
To get started, Segment recommends that you track just a few important events. You can always add more later.
156156

0 commit comments

Comments
 (0)