Mouseflow Destination

On this page

Mouseflow is a session replay and heatmap tool that shows how visitors click, move, scroll, browse, and pay attention on websites. It helps clients simplify their analytics to make decisions that matter. The analytics.js Mouseflow Destination is open-source. You can browse the code on GitHub.

This document was last updated on April 28, 2018. If you notice any gaps, outdated information or simply want to leave some feedback to help us improve our documentation, let us know!

Getting Started

The first step is to make sure Mouseflow supports the source type and connection mode you’ve chosen to implement. You can learn more about what dictates the connection modes we support here.

Web Mobile Server
📱 Device-mode
☁️ Cloud-mode
  1. From your Segment UI’s Destinations page click on “Add Destination”.
  2. Search for “Mouseflow” within the Destinations Catalog and confirm the Source you’d like to connect to.
  3. Drop in your Site ID within the Segment Settings UI. You can find this in your Mouseflow UI.
  4. In about 45 minutes the CDN will be updated and Mouseflow snippet will be initialized onto your page.


If you’re not familiar with the Segment Specs, take a look to understand what the Page method does. An example call would look like:

An initial page call is required for data to be sent to Mouseflow using Analytics.js and sends a page view. This is included by default in your Segment snippet.


If you’re not familiar with the Segment Specs, take a look to understand what the Identify method does. An example call would look like:

analytics.identify('user1234', {
  email: '',
  firstname: 'Peter',
  lastname: 'Gibbon'

When you call Identify, the traits you set will be sent as custom variables to Mouseflow.


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

Mouseflow HTML Delay

HTML Delay

Site ID

Your Mouseflow site ID.

This page was last modified: 12 Jun 2020

Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
Create free account