Connect Segment with SegMetrics

By setting up SegMetrics as a Segment destination, you can send data from any one of your Javascript Source integrations into Segmetrics.

Learn more about the details on the SegMetrics Destination page in Segment's documentation.

How the Integration Works

When you connect SegMetrics and Segment together you can send any Javascript page visits and identification events to SegMetrics.


Getting Started

To get started, connect the Segment integration from the integrations page within your SegMetrics account. You'll be presented with a step-by-step process for configuring the integration.

  1. In SegMetrics, go to your list of Integrations, and click Connect Your Account on the Segment Integration.
  2. Make note of the Account Id  and API Key , we'll be using this in the next steps.
  3. From your Segment UI’s Destinations page click on “Add Destination”.
  4. Search for “SegMetrics” within the Destinations Catalog and confirm the Source you’d like to connect to.
  5. Drop in your SegMetrics Account Id  and API Key , from step two, or which you can find in your Account Settings.

Page

If you haven’t had a chance to review Segment spec, please take a look to understand what the Page method does. An example call would look like:

analytics.page();

Page events will be sent to SegMetrics.io as a Click  event for the current URL.

Track

If you haven’t had a chance to review Segment spec, please take a look to understand what the Track method does. An example call would look like:

analytics.track("User Registered", {

plan: "Pro Annual",

accountType: "Facebook"

});

Track events will be sent to SegMetrics.io as a Click  event for the current URL.

Identify

If you haven’t had a chance to review the Segment spec, please take a look to understand what the Identify method does. An example call would look like:

analytics.identify('userId123', { email: 'john.doe@example.com' });

An email address is required by SegMetrics to connect the contact to your existing contacts in your CRM.

When you identify a new contact, the user's visitor tracking will be connected to contacts in your CRM that share the same email address.

Troubleshooting

Page events not being associated with contact

Page events will only be associated to a contact if the user exists in the CRM connected to SegMetrics. SegMetrics keeps non-identified page views for 3 months. 

Settings

Segment lets you change these destination settings from your Segment dashboard without having to touch any code.

API Key

You can find your API Key in your SegMetrics Account Settings. It should be 22 characters long, and look something like this: Oitudk830Nd0jdEdjhql24

Account Id

You can find your Site ID in your SegMetrics Account Settings. It should be 6 or more characters, starting with an a .  and look something like a1Hdwt5

Still need help? Contact Us Contact Us