π NOTE
The below guide is comprehensive enough to get you started with Segment. However, if you require more detailed information, please visit Segment's Getting Started Guide.
Create a Segment Account
Go to segment.com.
Fill in the form and press the Sign up button.
You will receive a verification link to the email address you provided in the sign up form.
Click the link to verify your email.
Sign in to with your email address.
Create a Workspace
You are then redirected to Segment Workspaces.
π TIP
A workspace is automatically created for you with your name. You can however create a new organisation-wide workspace by following the below guide.
Press the New Workspace button.
In the 'Nickname' field, enter your company's name.
Enter your billing email.
π TIP
This email address is used to communicate any billing information or important notices regarding your account and workspace.
Press the Create Workspace button.
On the next screen, press the Get started button and fill out a brief questionnaire about your plans with Segment. Then press the Next step button.
Add a Source
In your Segment dashboard, go to Connections > Sources.
Press the Add source button.
In the Catalog, select Javascript in the Website section.
Press the Add Source button.
Enter the name of the source.
π TIP
The name helps you identify the source within your workspace, and typically includes the product are and environment, for instance, Website Prod.
Enter a label to help organise and filter your sources.
Enter your website URL (optional).
Then press the Add Source button.
You are redirected to the source Overview tab. It contains the JavaScript snippet which contains the 'Write Key', a unique identifier of your account, workspace, connection and source.
Press the Copy Snippet button to copy the JavaScript snippet and paste it in a text or source code editor. It will be used in the next steps.
Install Segment
WHAT DOES IT MEAN?
When you implement Segment, you integrate Segment's code into your website, app, or server. This code then tracks user interactions and events, generating data messages based on the specific triggers you define.
In your source view, go to the Settings tab.
Navigate to API Keys in the left-hand navigation.
Check the value of the 'Write Key' here against the value in the analytics.load part of the source snippet copied into a text editor from the Overview tab (step 10. of the Add a Source section).
If the two values match, open the HTML file of your website where you want to track events.
π TIP
This is typically the main HTML file, for instance, index.html.
Paste the JavaScript snippet you copied in step 10 the
<head>
element of your HTML file and save your changes.π NOTE
Pasting the snippet into the
<head>
element ensures it loads immediately when a user visits your site.
π TIP
For more in-depth information about Installing Segments, please visit Segment's documentation or contact your Ventrata Customer Success Representative directly.