Serverpilot Cron Jobs For Mautic

If you have used Serverpilot to set up your server intending to host Mautic then here is how to add the cron jobs to keep everything running.

Continue reading “Serverpilot Cron Jobs For Mautic” ››

Creating a Mautic Email Theme Using Foundation for Emails

On first glance, the blank Mautic theme looks like the perfect starting point for a simple HTML email, you just drag and drop the elements that you need into the layouts, add your images and text, select some colours and it’s done.

Unfortunately, after testing the resulting emails in different email clients and web apps the results weren’t totally as expected and Outlook (Of course) was all over the place.

Having seen issues with other default themes in certain places I didn’t want to start with a copy of another theme that I might need to end up fixing so I went on the look for a better way to do things.

Enter Foundation for Emails. Continue reading “Creating a Mautic Email Theme Using Foundation for Emails” ››

Adding Woocomerce Bought Product Tags to Mautic Users

This is a follow-up to the original post about adding Mautic tags to users based on what they view on your site.

In this post, I’m going to add (or remove) tags after check out, based on the products that the user bought. Continue reading “Adding Woocomerce Bought Product Tags to Mautic Users” ››

Using Joomla Custom Fields to Add Canonical URLs

In this article, we are going to add a new field to the article editor screen and use the content of the field to output a canonical link in the head of the page on the article view.

At some point, Joomla’s automatically added canonical links were removed as they didn’t work correctly, so this is a manual workaround to put them back. Continue reading “Using Joomla Custom Fields to Add Canonical URLs” ››

Running Symfony 4 on Windows

How to get the Symfony 4 demo app running on Windows without errors.
Fix errors related to using the ‘make’ command and get routing and cache clearing working.

Continue reading "Running Symfony 4 on Windows" ››

Mautic Installation Checklist

Usually, when I install Mautic, there is a bit of back and forth with the client to get the information required to get the job done.

This is my list of information that needs to be provided to get Mautic installed and operational in one sitting. Continue reading “Mautic Installation Checklist” ››

Tagging WordPress and Woocomerce Users in Mautic

The official WordPress plugin for Mauitc comes with a number of shortcodes, which makes it easy to add Mautic forms and content into posts and pages.

One of the shortcodes adds the ability to tag (or un-tag) visitors in Mautic depending on the pages they view. This makes it easy to tag visitors dynamically by using the shortcode within theme files.

This can be useful for many reasons. A couple that comes to mind are tagging users with the type of product that they viewed so follow up emails can be sent for similar products, or blog categories so you know which subjects each user is interested in.

The following technique can be used on any website by using the tracking pixel tag, but the following example code is specific to WordPress. Continue reading “Tagging WordPress and Woocomerce Users in Mautic” ››

Using Geocoding API’s to Add Address Information from a Zip to a CSV File

Today I was talking to a musician importing thousands (many many thousands) of contacts into a newly setup Mautic install.

The issue was that the CSV of contacts to import only contained Country Code and Zip columns, making it difficult to target people in certain areas when something is about to happen in that location.

So we set about trying to expand the location information in the file using free online geolocation API’s. Continue reading “Using Geocoding API’s to Add Address Information from a Zip to a CSV File” ››

Fixing Invalid File Type text/x-pascal When Importing Contacts to Mautic

If you get the following error when trying to import contacts into Mautic, it’s likely that the issue is not with the file encoding, but with one of the fields within the file.

Invalid file type “text/x-pascal”. Use a file that matches of of the following mime types: “text/csv”, “text/plain”.

Continue reading “Fixing Invalid File Type text/x-pascal When Importing Contacts to Mautic” ››

Loading Disqus Comments On Demand Without jQuery or AJAX

Posted in General

There are many posts around the internet about loading Disqus comments on demand, however, I found many of them either rely on jQuery, try and load the embed.js file via ajax and run into CORS issues or just lack small bits of functionality. So I thought I would put everything together in one gist.

Continue reading “Loading Disqus Comments On Demand Without jQuery or AJAX” ››