Mautic

Mautic: Helpful Queries to Audit your System

Posted on

  To  check how many emails are triggered and sent for your campaigns Today. SELECT leads.id, leads.email, leads.company, leads.custom_mkt_drip, campaign_lead_event_log.* FROM campaign_lead_event_log left join leads on campaign_lead_event_log.lead_id = leads.id left join email_stats ON leads.email = email_stats.email_address WHERE DATE(date_triggered) = DATE(NOW()) AND campaign_lead_event_log.is_scheduled = 0 AND campaign_lead_event_log.channel = “email” AND metadata NOT LIKE “%failed%” ORDER BY […]

Mautic

Mautic: Cleaning Database

Posted on

Cleaning the DB depends on your use case. In our company this will work, as we want to keep the DB small and organized, and have a bunch of manual integrations between multiple systems and this Mautic instance. We specifically do not want to truncate the email_stats table, as this table has a record of […]