Recently while working for a client I developed a Mautic plugin to add custom action on Campagin builder.
Your actions will show up in campagin bulder. You can also create new conditions or decisions which gives you complete control over your customer's journy.
public function onCampaignBuild(CampaignBuilderEvent $event)
{
$event->addAction(
'sos.campaign.mark_success',
[
'label' => 'Mark as Success',
'eventName' => CampaignStatsEvents::ON_CAMPAIGN_MARK_SUCCESS,
'description' => 'Mark campaign as success for this contact',
]
);
}
$buttons = [
[
'label' => 'View Stats',
'icon' => 'fa fa-line-chart',
'context' => 'campaign',
],
];
foreach ($buttons as $button) {
$this->addButtonGenerator(
$button['objectAction'],
$button['label'],
$button['icon'],
$button['context']
);
}
Your actions will show up in campagin bulder. You can also create new conditions or decisions which gives you complete control over your customer's journy.
How the campagin tree may look like:
And when the action is triggered, it will show in your customer's profile activity.
Server: PHP Symphony
I'm a full stack developer with experties in Mautic, Laravel, WordPress, AWS, React