Mouseflow Destination

Destination Info
Connection Modes
Device-mode Cloud-mode
Web Web
Mobile Mobile
Server Server

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.

Getting Started

Before you start, make sure Mouseflow supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.

Web Mobile Server
📱 Device-mode ⬜️ ⬜️
☁️ Cloud-mode ⬜️ ⬜️ ⬜️
  1. From the Segment web app, click Catalog.
  2. Search for “Mouseflow” in the Catalog, select it, and choose which of your sources to connect the destination to.
  3. In the destination settings, enter your Site ID within the Segment Settings UI. You can find this in your Mouseflow UI.

Your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading the Mouseflow snippet on your page and sending data.


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 the Segment app without having to touch any code.

Setting Description
Site ID
string. Your Mouseflow site ID.
Mouseflow HTML Delay number, defaults to 0.

HTML Delay

This page was last modified: 24 May 2022

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