Skip to content

Commit b8f8691

Browse files
authored
DOC-296: Analytics.js updates [netlify-ignore]
1 parent ab0bb15 commit b8f8691

File tree

1 file changed

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

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ 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 which are billed together for an organization). If you already created one, great! If not, you can sign up for a free Segment account and create one.
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). If you already created one, great! If not, you can sign up for a free Segment account and create one.
1414

1515
Next create an Analytics.js source from your Workspace:
1616

1717
1. Click **Add Source**.
18-
2. From the source catalog page, click **Javascript**.
18+
2. From the source catalog page, click **JavaScript**.
1919
3. Click **Add Source** again from the informational panel that appears to the right.
2020
4. Give the source a display name, and enter the URL the source will collect data from.
2121

22-
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 the Segment servers where the data is coming from, so Segment can route it to your destinations and other tools.
22+
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

2525
## Step 2: Copy the Segment Snippet
2626

27-
Installing Segment is easy, just paste this snippet into the `<head>` tag of your site.
27+
Paste this snippet into the `<head>` tag of your site to install Segment.
2828

2929
{% include content/snippet-helper.md %}
3030

@@ -33,7 +33,7 @@ Next, replace `YOUR_WRITE_KEY` in the snippet you pasted with your Segment proje
3333
> note ""
3434
> **Note:** When you use Analytics.js in device-mode the source's Write Key is public, because it runs in a user's browser and can be accessed using the browser's developer tools. If this is not acceptable to your organization, you can explore [other Segment Sources](/docs/connections/sources/catalog/) which collect data from a server-based installation, and which are not accessible to the user.
3535
36-
That snippet loads Analytics.js onto the page _asynchronously_, so it won't affect your page load speed. Once the snippet is running on your site, you can turn on destinations from the destinations page in your workspace and they start loading on your site automatically!
36+
That snippet loads Analytics.js onto the page _asynchronously_, so it won't affect your page load speed. Once the snippet is running on your site, you can turn on Destinations from the Destinations page in your workspace and they start loading on your site automatically.
3737

3838
Note that you should remove other native third-party destination code that you might have on your site. For example, if you're using Segment to send data to Google Analytics, make sure you remove the Google Analytics snippet from your site source code to prevent sending the data twice.
3939

@@ -64,7 +64,7 @@ That identifies Michael by his unique User ID (in this case, `f4ca124298`, which
6464

6565
To do that, we recommend that you use a backend template to inject an `identify` call into the footer of **every page** of your site where the user is logged in. That way, no matter what page the user first lands on, they will always be identified. You don't need to call `identify` if your unique identifier (`userId`) is not known.
6666

67-
Depending on your templating language, your actual identify call might look something like this:
67+
Depending on your templating language, your actual `identify` call might look something like this:
6868

6969
```js
7070
{% raw %}
@@ -108,7 +108,7 @@ If you're just getting started, some of the events you should track are events t
108108

109109
To get started, we recommend that you track just a few important events. You can always add more later!
110110

111-
Once you add a few `track` calls, **you're done with this tutorial!** You successfully installed Analytics.js tracking. Now you're ready to turn on any destination you like from our interface, margarita in hand.
111+
Once you add a few `track` calls, **you're done with this tutorial!** You successfully installed Analytics.js tracking. Now you're ready to turn on any Destination you like from our interface, margarita in hand.
112112

113113

114114
---

0 commit comments

Comments
 (0)