WordPress ######### Installation & activation ************************* Requirements ============ - WordPress 4.6 or later - PHP 5.6 or later Steps ----- 1. Download the WP Mautic Plugin. 2. Go to your WordPress Admin Dashboard → Plugins → Add New. 3. Click 'Upload Plugin' and choose the downloaded ZIP file. 4. Click 'Install Now' and then 'Activate.' Shortcodes and usage ******************** Available shortcodes ==================== WP Mautic currently provides a shortcode API through ``shortcodes.php``. Example usage ------------- .. code-block:: php [mautic type="form" id="1"] Parameters ========== - **type:** type of Mautic resource - for example ``form``. - **id:** the ID of the Mautic Form or Asset you want to embed. Tracking script behavior ************************ .. vale off Header vs footer ================ You can choose to load the Mautic tracking script in the site header - for faster pageview tracking - or footer - for better performance. .. vale on Fallback tracking ================= If a visitor has JavaScript turned off, a fallback ```` tag is automatically added for tracking via a tracking pixel. Custom attributes ================= .. vale off The Plugin automatically sends additional metadata like language, page title, referrer, and user details if enabled. .. vale on Plugin settings *************** Accessing the settings ====================== Navigate to **Settings → WPMautic** from your WordPress dashboard. Available options ================= .. vale off - **Base URL:** the URL of your Mautic instance - for example ``https://example.mautic.com``. - **Script Location:** choose whether to inject tracking code in the header, footer, or turn it off. - **Track Logged In Users:** enable tracking details like email, username for logged-in users. - **Fallback Activation:** adds a ``