Skip to content

Commit ed262bd

Browse files
Explain why AJS Write Key is public (#1035)
* Explain why Write Key is public * Update src/connections/sources/catalog/libraries/website/javascript/quickstart.md Co-authored-by: LRubin <[email protected]> Co-authored-by: LRubin <[email protected]>
1 parent 3d9f76b commit ed262bd

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Installing Segment is easy, just paste this snippet into the `<head>` tag of you
2020

2121
Next, replace `YOUR_WRITE_KEY` in the snippet you pasted with your Segment project's **Write Key**, which you can find in your project set up guide or settings.
2222

23+
> note ""
24+
> **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.
25+
2326
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!
2427

2528
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.

0 commit comments

Comments
 (0)