Skip to content

Violet329/react-mouseflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-mouseflow

Implement the Mouseflow tracking snippet into your application

Installation

npm install react-mouseflow

Usage

import { mouseflow} from 'react-mouseflow';

mouseflow.initialize(mfid);

//Tag a recorded session
mouseflow.tag('tag', property);

// Add a variable to a recorded session
mouseflow.setVariable('setVariable', key, value);

// Update the current page path
mouseflow.newPageView('/my/page');

// Ensure Mouseflow is running before calling it's methods
if (Mouseflow .initialized()) {
  //your code here
}

mfid: Stands for Mouseflow Website ID. This is the ID which tells Mouseflow which project's recording script should be run. Where is my website id?

About

A simple npm package for adding Mouseflow to your react application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published