We'll create fresh WordPress site with Friendly Automate installed. You have 20 minutes to test the plugin after that site we'll be deleted.
The Friendly Automate WordPress Plugin injects the Friendly Automate tracking script and images into your WordPress website. Your Friendly Automate instance will be able to track information about your visitors like what pages they visit and what content they’re interested in. You can also insert Friendly Automate’s dynamic content inside your website using different shortcodes, as well as integrate with Elementor.
Once installed, the plugin will appear in your plugin list:
You can also customize where you want to insert the tracking script location on your website. Feel free to leave this as the default option.
To load a Friendly Automate Form to your WordPress page or post, insert this shortcode to the place you want the form to appear:
[friendlyautomate type="form" id="1"]
Replace “1” with the form ID you want to load. To get the ID of the form, go to your Friendly Automate account, open the form detail and look at the URL. The ID is right there. For example in this URL: http://yourfriendlysite.com/s/forms/view/3 the ID is 3.
To load dynamic content into your WordPress content, insert this shortcode where you’d like it to appear:
[friendlyautomate type="content" slot="slot_name"]Default content to display in case of error or unknown contact.[/friendlyautomate]
Replace the “slot_name” with the slot name you’d like to load. This corresponds to the slot name you defined when building your campaign and adding the “Request Dynamic Content” contact decision.
Using Elementor Forms to collect your leads? Check out our video guide on how to integrate Friendly Automate with Elementor
Tracking script works right after you finish the configuration steps. That means it will insert the mtc.js
script from your Friendly Automate instance. You can check HTML source code (CTRL + U) of your WordPress website to make sure the plugin works. You should be able to find something like this:
html
<script>
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
})(window,document,'script','http://yourfriendlysite.com/mtc.js','mt');
friendlyautomate_send();
</script>