Mouseflow Help & Support

Installing Mouseflow Using Tag Managers


With Mouseflow, you can either install the tracking code directly to your site or add it to a tag manager. This article explains how to implement the tracking code in various tag managers.

Google Tag Manager (v2)

To install Mouseflow using Google Tag Manager (v2), follow the steps below:

  1. Log in to Google Tag Manager or create an account if you don't have one already.
  2. On the Overview Page, click "New Tag".
  3. Insert a name for the tag (e.g. Mouseflow). Under "Choose Product", click "Show more" and then select "Mouseflow". From your Mouseflow account pick the website you're interested in from the drop down menu next to the "Help" tab > Click the "Settings" tab on the left hand side and copy the Website ID. Insert this Website ID, including the dashes, as the Project ID in Google Tag Manager. Click "Continue".
  4. Apply a firing rule by either choosing an existing rule or creating a new one (if needed). If you do not specify a rule, the Mouseflow tag will not be fired on any page(s). Note: To fire the Mouseflow tag on all pages, use the rule called "All Pages" where the {{url}} must match a regular expression of ".*" (without quotes). Click Create Tag.
  5. When you're ready to publish the changes, click Publish in the upper-right corner. Visit your site, click and move the mouse around, and log in to Mouseflow to see the recording. Note: You may have to clear your browser cookies/cache and it may take a few minutes for the recording to appear.


To install Mouseflow using Tealium, follow the steps below:

  1. Log in to your Tealium account or create an account if you don't have one already.
  2. Search for the Mouseflow tag in the Tealium iQ tag marketplace.
  3. Configure the Mouseflow tag with client-specific credentials. We recommend using the following:
    1. Use mapping to override the default Account ID.
    2. Use mapping to push key/value pairs into the _mfq array. Replace "myvar" with your variable name to use this feature.
  4. Assign page load rules. By default, the tag is set to fire on all pages. You can set conditional options so tags are only fired on specific pages.
  5. Data mapping: Choose the data sources that are looking to be collected from the tag. You should have Account ID (account) and Custom Parameter (myvar) listed.
  6. Click "Apply" and you should be all set.
  7. We recommend that you test the different Enterprise Capabilities. You can manage user permissions and test out profiles in different environments (Dev, QA, Prod). Marketing or eCommerce can add tags and have them approved by IT, thus improving workflow and decreasing implementation cycles.

  8. We also recommend you explore Tealium's Extensions. They offer added functionality and allow for easier and more advanced tag-based implementations.


To install Mouseflow using Segment, follow the steps below:

  1. Log in to your Segment account or create an account if you don't have one already.
  2. Choose or create the project you would like to connect Mouseflow to. Go to the Integrations tab and click the Mouseflow tab.
  3. Paste your unique Mouseflow website ID in the "Site ID" section. Your website ID is located in your Mouseflow account in the website's dashboard > Click the "Settings" tab on the left hand side > Copy the website ID. Under "Advanced Settings" you can also set an HTML delay. Read more about that feature here.
  4. Click "Save and Close" and flip Mouseflow "On". You're all set.
  5. You can also read more about integrating with Segment on Segment's help page.


If you have questions or need help, feel free to open a ticket or call us at +1 (855) 668-7335.

Tags: google tag manager tealium segment tag manager

Have more questions? Submit a request


Powered by Zendesk