Skip to content
Add Mautic JS tracking code to every page. Easy access to custom parameters programmatically.
PHP
Branch: master
Clone or download
Latest commit 5b0277a Aug 21, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
controllers/single_page/dashboard/system First commit Jun 14, 2017
single_pages/dashboard/system/mautic_tracker First commit Jun 14, 2017
src/Concrete/Mautic [Fix] __toString() methods return Jun 29, 2017
Icon.png
README.md Create README.md Jun 14, 2017
controller.php First commit Jun 14, 2017

README.md

concrete5 Add-on: Mautic Tracker

Add Mautic JS tracking code to every page. Easy access to custom parameters programmatically.

How to add custom parameter

You can set custom parameter from your pacakge, or custom codes.

$tracker = \Core::make(Concrete\Package\MauticTracker\Mautic\Tracker::class);
$tracker->setParam('email', 'my@email.com');
$tracker->setParam('firstname', 'John');

Result:

mt('send', 'pageview', {email: 'my@email.com', firstname: 'John'});
You can’t perform that action at this time.