Skip to content

Commit 7f41a6f

Browse files
committed
add info on where to place snippet
1 parent d713849 commit 7f41a6f

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ You can choose to install Segment to your site in 1 of 2 ways:
3535
> info ""
3636
> You can find the latest version of the Segment snippet in the **Overview** tab of your JavaScript source.
3737
38-
To add the Segment snippet to your app:
39-
40-
Paste the snippet into the `<head>` tag of your site to install Segment.
38+
To add the Segment snippet to your app, paste it into the `<head>` tag of your site, **below the `<title>` tag and the canonical URL**. This ensures that Analytics.js can capture the `document.title` value.
4139

4240
{% include content/snippet-helper.md %}
4341

@@ -48,7 +46,7 @@ Replace `YOUR_WRITE_KEY` in the snippet you pasted with your Segment project's *
4846
4947
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.
5048

51-
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.
49+
You should also 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.
5250

5351
> info ""
5452
> 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.

0 commit comments

Comments
 (0)