In this article, we will go over the basic functions that allow Mouseflow to integrate into almost any Cookie Consent popup you may be using on your website.
You can also simply disable Mouseflow from using cookies.
Option #1: Only load Mouseflow after consent is given
Option #2: Prevent Mouseflow from starting automatically. Start Mouseflow after consent is given.
You can prevent Mouseflow from starting automatically on the page by adding the following code before the tracking snippet.
window.mouseflowAutoStart = false;
Then, after Mouseflow has loaded on the page, you can start Mouseflow at any time with the following code.