Files
mautic-marketing-program-bu…/readme.md
T
alexandre_gain_mt3s 4fb36eebfc feat(call-script): add the Call Script component (0.19.0)
A new Mautic component, listed under Components > Call Scripts (/s/call-scripts),
built like the other domains on AbstractStandardFormController/FormModel.

- CallScript (mt3s_call_scripts): name, description, category, owner, status,
the publish window shown as start/end date and time, the HTML script with
dynamic tokens kept as typed (html cleaning mask), the calling window
(weekdays, hours, sentinel in the contact's or a fixed timezone) and the retry
policy (max attempts, delay, backoff: none/linear/exponential)
- CallScriptOutcome (mt3s_call_script_outcomes, ON DELETE CASCADE): label,
data type (checkbox/radio/free text/dropdown), options JSON ({value,label})
and position; nested collections reuse the program-collection JS
- validators: ValidCallingWindow, ValidCallScriptOutcomeOptions, and an atPath
option on EndDateAfterStartDate so its violation lands on publishDown
- config: routes, the Components menu item (parent mautic.core.components),
call_script category type, model alias, call_scripts permissions, version 0.19.0
- migration Version_0_19_0 creates both tables and their FKs immediately
(users/categories SET NULL, outcomes CASCADE), idempotent
- translations en_US/fr_FR, unit tests, readme/AGENTS documentation
2026-11-21 20:58:25 +01:00

99 lines
4.9 KiB
Markdown

# MT3S Marketing Program for Mautic
A free, open-source plugin for **Mautic 7** that adds two marketing tools to your instance:
- **Marketing Programs** — plan and track your marketing activities. Programs carry a status,
owner, dates, budget and category, and hold everything that makes them real: objectives,
insight notes, budget allocations, stakeholders and audiences, and a task list with
dependencies, milestones, phases and RACI assignments.
- **Smart Links** — short links (like `https://links.example.com/l/abc`) that redirect visitors
to any destination — an external URL or a Mautic landing page or form — while tagging the
click with the UTM parameters you choose and counting every hit for the statistics.
Both tools appear in the Mautic menu, are fully permission-aware, and keep their data in their
own database tables. They share one plugin, so you install and configure them once.
## Requirements
- Mautic 7
- PHP 8.2 or newer
## Installation
The step-by-step guide lives in the project wiki:
> **[Installing the MT3S Marketing Program Bundle on Mautic](https://git.mt3.solutions/MT3S/mautic-marketing-program-bundle/wiki/Installing-the-MT3S-Marketing-Program-Bundle-on-Mautic)**
In short:
1. Copy or clone this repository into your Mautic installation as
`docroot/plugins/MT3SMarketingProgramBundle` (the folder name matters).
2. Clear the cache and register the plugin:
```bash
php bin/console cache:clear
php bin/console mautic:plugins:reload
```
3. In Mautic, go to **Settings > Plugins**, open **MT3S Marketing Program** and publish it.
## What you get
### Marketing Programs
- A **Marketing Programs** menu with the program list, the task list, the stakeholder directory,
the audience directory and the **Item types** page where you define the types used by
programs (with their pictograms), tasks, stakeholders and audiences. The Smart Links pages
(UTM Taxonomies and Smart Links) close the same menu.
- A program page with seven tabs: **Details**, **Insights**, **Objectives**, **Allocations**,
**Audiences**, **Stakeholders** and **Tasks**.
- Tasks have types, statuses, planned dates and effort, and can depend on each other
(end-to-start and the other combinations). A milestone pins its end date to its start date;
a phase groups tasks. Stakeholders can be assigned to a task as Responsible, Accountable,
Consulted or Informed (RACI).
- A console command, `php bin/console mt3s:marketing-program:refresh-stats`, recomputes and
prints per-program statistics.
### Smart Links
- **Smart Links** and **UTM Taxonomies**, the last two items of the **Marketing Programs** menu.
- Each link is a short slug (up to 9 characters) plus a destination: an external URL, or a
Mautic landing page / standalone form. Choose the redirect status code per link
(301, 302, …).
- A **UTM taxonomy** defines, for each of the five standard UTM parameters, whether the link
sets a fixed value, offers a pick list, or accepts free text. The link form then shows exactly
the fields the taxonomy allows.
- The public route `/l/{slug}` needs no login, only answers on the short-link domain you
configure (it stays a normal Mautic page on any other domain), records a hit per click —
date, IP, referer, user agent — and never lets a statistics failure block the redirect.
### Call Scripts
- **Call Scripts**, in the **Components** menu: the scripts your agents read when they call a
contact.
- A script is HTML with dynamic tokens like `{contact.first_name}`, kept as typed, and carries a
name, a description, a category, an owner, a status and a start and end date and time.
- Each script defines its **outcomes** — the list of things the agent records after the call. Each
outcome has a data type: checkboxes, radio buttons or a drop-down (with their options), or free
text.
- A **calling window** (weekdays and hours, read in the contact's timezone or in a fixed one) and a
**retry policy** (maximum attempts, delay between attempts, and whether the delay stays
constant, grows linearly or doubles) travel with the script.
## Configuration
- **Settings > Configuration > Marketing Program Settings**: the general settings — the
currency, the stakeholder phone region and the audience attribute toggles.
- **Settings > Configuration > Smart Links Settings**: the short-link domain and, per UTM
parameter, whether it is used and how.
- **Settings > Roles**: the plugin's permissions live under **Marketing Program Permissions**
(programs, tasks, stakeholders, audiences, item types, categories, smart links and UTM
taxonomies). Users need them unless they are administrators.
## License
This plugin is free software: you can use, study, modify and redistribute it under the terms of
the **GNU General Public License v3.0 or later**. See [LICENSE](LICENSE) for the full text.
© MT3 Solutions. It is provided as open source, in the hope it is useful, without any warranty.