You can export the UTM report from Contact Form 7 via Flamingo by using our AFL UTM Tracker plugin and an additional AFL Exporter for Flamingo plugin.
Why have we not included this code as part of our AFL UTM Tracker plugin?
First it is because the Flamingo plugin does not have any hook for customizing the CSV header file and CSV rows values.
Secondly, the Flamingo plugin only allows one custom PHP class file to override the existing Flamingo_Inbound_CSV PHP class. This means if we include this file as part of our plugin, a different plugin will not be able to add custom column into the CSV file.
Thirdly, we have tried to submit Github pull request to the Flamingo plugin so that it can have hooks for modifying the CSV header and CSV row value but unfortunately it was rejected by the plugin author.
Therefore, we have decided to create the AFL Exporter for Flamingo plugin to provide 2 developer hooks for modifying the CSV values.
Minimum Requirements:
- AFL UTM Tracker v2.26.0
- Contact Form 7 v5.7.1
- Flamingo v2.4.0
- AFL Exporter for Flamingo v1.0.0
Steps
We assumed that you have already installed the Flamingo plugin.
Install the AFL Exporter for Flamingo plugin
- Go to our AFL Exporter for Flamingo plugin’s Github Releases page.
- Under the Latest version, look for the Assets section.
- Download the plugin zip file with name ‘afl-exporter-for-flamingo-vX.X.X.zip’.
- Go to your WordPress admin dashboard.
- Go to the Plugins menu > Add plugin.
- Upload Plugin > Choose File > Install.
- Activate plugin.
NOTES:
- Do NOT download Source code (zip) or Source Code (tar.gz).
- This plugin does not have any user interface. It extends the export functionality of the Flamingo plugin.
Exporting the Contact Form 7 submissions
- Go to your WordPress admin dashboard.
- Go to Flamingo menu > Inbound Messages.
- Click on the Export button.
- Finally check the downloaded CSV file to see if the UTM report is included.
Removing our old custom code snippet
- Please remove our old custom code snippet from your functions.php since you will no longer require it by using our AFL Exporter for Flamingo plugin.
- If you can’t remember where you have placed it, then refer to our Github code snippet here.