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”
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"
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”
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”
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”
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”
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”
Having used Mautic for a few clients, I decided to install it on my own site, partly for testing and partly to actually use it’s functionality.
Unfortunately, having made an effort to keep my page sizes to a bare minimum, it was depressing to see that the tracking script increased the overall size of my pages by around 50%.
So I took a look at the script to see if it’s size could be cut down.
I first ran into this issue after installing a local copy of Mautic to develop some custom Email templates.
Everything looks fine until you open up the email builder and images added in the Email Twig template don’t show.
The fix is pretty simple if a little counter intuitive.
Continue reading “Fixing Broken Email Template Images When Running Mautic in a Folder”
If you are following the official documentation to use the symfony installer on Windows then it is very likely that you will run into the error:
'symfony' is not recognized as an internal or external command,
operable program or batch file.
Here’s how to fix it.
Continue reading “Using the Symfony Installer Command Line On Windows”