Install Google Tag Manager before proceeding

Using Google Tag Manager is a great, and very easy way, to install Mouseflow on your site. In this article, we're going to go over the steps to install Mouseflow using Google Tag Manager. 

Create a new tag in Google Tag Manager

Log into Google Tag Manager and make sure you have selected the account associated with the site for which you want to install Mouseflow.

Click the "New Tag" button from your Overview

And then click on the "Tag Configuration"

A list of different tag types will appear.

Configure the tag

You have two options when choosing the tag type when installing Mouseflow with Google Tag Manager.

Important: Only use one of the following tag types for your Mouseflow installation

Configure a Mouseflow type tag

In the list of tags, you will see an option with the Mouseflow logo . Select it and you will be brought back to the tag configuration screen.

Tip: you can find the Mouseflow tag easily by searching the list of tags

In the Project ID field paste the Website ID which can be found on your Website Settings page in Mouseflow.

Configure a Custom HTML type tag

In the list of tags, find the option labeled "Custom HTML"

Once selected, you will see a field to insert HTML code. Insert your Mouseflow tracking snippet here.

Tip: Using a Custom HTML tag allows you to later add many useful customizations to the Mouseflow tracking snippet.

Set up triggering for your new tag

To do this, first click on the "Triggering" section.

The simplest setup is to select the All Pages option and Save. You can later manage which pages Mouseflow records from your Mouseflow account.

Google Tag Manager also offers a robust triggering system that can help you select exactly which users to record

Once you're done, click the "Save" button. You may be asked to rename your tag.

Publish your tag container

Now that you have made changes to your Google Tag Manager container, you will need to publish them.

You can publish your tags by clicking the "Submit" button from your Overview page in Google Tag Manager. Once, published, you are ready to start recording with Mouseflow.