This is a JavaScript module for implementing Mautic tracking into a website. Can be used client side on React.
npm install --save mautic-tracking
Initializing Mautic module:
import mautic from 'mautic-tracking';
mautic.initialize('https://my.mautic-installation.com/mtc.js');
mautic.pageView({ custom: 'options' });
Value | Type | Required | Notes |
---|---|---|---|
mtcPath | String |
Yes | The path to your mtc.js file. |
Value | Type | Required | Notes |
---|---|---|---|
options | Object |
No | Object with custom values that you wish to pass to your mautic software on each page view. |
Released under the MIT license
Copyright (c) 2019 Moises Baez