• Stars
    star
    118
  • Rank 289,329 (Top 6 %)
  • Language
    PHP
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Wordpress Plugin

Mautic WordPress plugin Build Status Scrutinizer Code Quality Code Coverage

Mautic Wordpress Plugin injects Mautic tracking script and image in the WP website. Your Mautic instance will be able to track information about your visitors. You can also insert Mautic content inside your website using different shortcodes.

Key features

  • You don't have to edit source code of your template to insert tracking code.
  • Plugin adds additional information to tracking image URL so you get better results than using just plain HTML code of tracking image.
  • You can use Mautic form embed with shortcode described below.
  • You can choose where the script is injected (header / footer).
  • Tracking image can be used as fallback when JavaScript is disabled.

Installation

Via WP administration

Mautic - WordPress plugin is listed in the in the official WordPress plugin repository. That makes it very easy to install it directly form WP administration.

  1. Go to Plugins / Add New.
  2. Search for WP Mautic in the search box.
  3. The "WP Mautic" plugin should appear. Click on Install.

Via ZIP package

If the installation via official WP plugin repository doesn't work for you, follow these steps:

  1. Download ZIP package.
  2. At your WP administration go to Plugins / Add New / Upload plugin.
  3. Select the ZIP package you've downloaded in step 1.

Configuration

Once installed, the plugin must appared in your plugin list :

  1. Enable it.
  2. Go to the settings page and set your Mautic instance URL.

And that's it !

Usage

Mautic Tracking Script

Tracking script works right after you finish the configuration steps. That means it will insert the mtc.js script from your Mautic instance. You can check HTML source code (CTRL + U) of your WP website to make sure the plugin works. You should be able to find something like this:

<script>
    (function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
        w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
        m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
    })(window,document,'script','http://yourmauticsite.com/mtc.js','mt');

    wpmautic_send();
</script>

Custom attributes handling

If you need to send custom attributes within Mautic events, you can use the wpmautic_tracking_attributes filter.

add_filter('wpmautic_tracking_attributes', function($attrs) {
    $attrs['preferred_locale'] = $customVar;
    return $attrs;
});

The returned attributes will be added to Mautic payload.

Mautic Forms

To load a Mautic Form to your WP post, insert this shortcode to the place you want the form to appear:

[mautic type="form" id="1"]

Replace "1" with the form ID you want to load. To get the ID of the form, go to your Mautic, open the form detail and look at the URL. The ID is right there. For example in this URL: http://yourmautic.com/s/forms/view/3 the ID is 3.

Mautic Focus

To load a Mautic Focus to your post, insert this shortcode to the place you want the form to appear:

[mautic type="focus" id="1"]

Replace "1" with the focus ID you want to load. To get the ID of the focus, go to your Mautic, open the focus detail and look at the URL. The ID is right there. For example in this URL: http://yourmautic.com/s/focus/3.js the ID is 3.

Mautic Dynamic Content

To load dynamic content into your WP content, insert this shortcode where you'd like it to appear:

[mautic type="content" slot="slot_name"]Default content to display in case of error or unknown contact.[/mautic]

Replace the "slot_name" with the slot name you'd like to load. This corresponds to the slot name you defined when building your campaign and adding the "Request Dynamic Content" contact decision.

Mautic Gated Videos

Mautic supports gated videos with Youtube, Vimeo, and MP4 as sources.

To load gated videos into your WP content, insert this shortcode where you'd like it to appear:

[mautic type="video" gate-time="#" form-id="#" src="URL"]
[mautic type="video" src="URL"]

Replace the # signs with the appropriate number. For gate-time, enter the time (in seconds) where you want to pause the video and show the mautic form. For form-id, enter the id of the mautic form that you'd like to display as the gate. Replace URL with the browser URL to view the video. In the case of Youtube or Vimeo, you can simply use the URL as it appears in your address bar when viewing the video normally on the providing website. For MP4 videos, enter the full http URL to the MP4 file on the server.

Since the Mautic v2.9.1 release, the form-id is not mandatory anymore, mautic video can be tracked.

Mautic Tags

You can add or remove multiple lead tags on specific pages using commas. To remove an tag you have to use minus "-" signal before tag name:

[mautic type="tags" values="mytag,anothertag,-removetag"]

More Repositories

1

mautic

Mautic: Open Source Marketing Automation Software.
PHP
6,490
star
2

docker-mautic

Docker Image for Mautic
Dockerfile
327
star
3

api-library

Mautic API Library
PHP
168
star
4

documentation

Mautic End User Documentation
JavaScript
62
star
5

plugin-grapesjs-builder

GrapesJS HTML and MJML integration for Mautic
PHP
48
star
6

mautic-zapier

Zapier JS app communicating with Mautic
JavaScript
25
star
7

mautic-grav

Mautic integration into Grav CMS
PHP
23
star
8

mautic-typo3

Add-on TYPO3 extension that enhances the "EXT:marketing_automation" TYPO3 extension by connecting it to the Mautic Marketing Automation platform: Determine "Persona" from Mautic segments. Also provides additional services e.g. language synchronisation between Mautic and TYPO3.
PHP
21
star
9

mautic-documentation

User documentation for the Mautic project
JavaScript
19
star
10

MauticGeneratorBundle

Generator for Mautic bundles
PHP
16
star
11

mautic-joomla

Joomla Plugin
PHP
15
star
12

composer-plugin

A composer plugin that mautic plugin and theme developers can use to distribute their code.
PHP
14
star
13

plugin-helloworld

Hello World plugin built on the Integration framework
PHP
12
star
14

mautic-saelos-bundle

Bi-Directional Saelos integration plugin for Mautic
PHP
11
star
15

grapesjs-preset-mautic

GrapesJS preset configuration for the Mautic editor
JavaScript
11
star
16

mautic-drupal

Drupal plugin
8
star
17

plugin-crm

PHP
7
star
18

mautic-concrete5

Concrete5 Plugin
PHP
7
star
19

mautic-spi

Mautic Single Page Installer
PHP
7
star
20

mautic-helper-chrome-extension

JavaScript
7
star
21

mautic-community-handbook

A handbook for all things related to the Mautic Community
JavaScript
7
star
22

user-documentation

6
star
23

mautic-tester

Mautic Pull Request Tester
PHP
5
star
24

plugin-tagmanager

PHP
5
star
25

mautic-community-knowledgebase

A Knowledgebase for the Mautic community
5
star
26

website

The Mautic Website
5
star
27

language-packs

Public store of prepared Mautic language packs. Rebuilt every day from Transifex.
5
star
28

core-lib

PHP
5
star
29

recommended-project

This project template provides a starter kit for managing your Mautic dependencies with Composer.
4
star
30

core-composer-scaffold

PHP
4
star
31

plugin-focus

PHP
4
star
32

developer-documentation-new

New developer documentation on Read the Docs
4
star
33

theme-skyline

Twig
3
star
34

theme-sunday

Twig
3
star
35

theme-fresh-wide

CSS
3
star
36

plugin-clearbit

PHP
3
star
37

theme-aurora

Twig
3
star
38

theme-paprika

Twig
3
star
39

plugin-cloudstorage

PHP
3
star
40

theme-coffee

Twig
3
star
41

theme-sparse

Twig
3
star
42

core-project-message

PHP
3
star
43

theme-oxygen

Twig
3
star
44

plugin-fullcontact

PHP
3
star
45

theme-brienz

Twig
3
star
46

plugin-gmail

PHP
3
star
47

theme-vibrant

Twig
3
star
48

theme-mauve

Twig
3
star
49

theme-confirmme

Twig
3
star
50

theme-neopolitan

Twig
3
star
51

theme-nature

Twig
3
star
52

plugin-social

PHP
3
star
53

plugin-zapier

PHP
3
star
54

theme-cards

Twig
3
star
55

plugin-citrix

PHP
3
star
56

plugin-outlook

PHP
3
star
57

theme-fresh-left

CSS
3
star
58

theme-goldstar

Twig
3
star
59

theme-fresh-fixed

CSS
3
star
60

statsapp

Powers the Stats App and the Mautic 3 migration dashboard.
PHP
3
star
61

theme-trulypersonal

Truly Personal theme for Mautic
Twig
3
star
62

plugin-emailmarketing

PHP
3
star
63

grav-plugin-login-oauth2-auth0

PHP
3
star
64

theme-fresh-center

CSS
3
star
65

theme-blank

Twig
3
star
66

mautic.org-website

This repository relates to the mautic.org website. We accept PRs here to make changes, and issues to flag up problems that you might find or changes that are needed.
PHP
2
star
67

marketplace-allowlist

Repo that keeps track of the allowed plugins in the Mautic Marketplace.
2
star
68

Community-Portal

Mautic's community governance portal
HTML
2
star
69

mautic-gmail-plugin

1
star
70

Gsod

1
star
71

plugin-messagebird

MessageBird SMS Integration for >= Mautic 2.13
PHP
1
star
72

plugin-example

An example plugin that does nothing
PHP
1
star