How To Connect Mautic To WordPress

#Overview

In this guide, you will learn how to install WP Fusion and set up a direct connection to integrate your WordPress website with your Mautic account.

To get started install and activate the WP Fusion plugin, then navigate to Settings » WP Fusion.

From the ‘Select Your CRM’ list choose ‘Mautic’.

Screenshot of a setup page displaying API configuration options for Mautic, essential for WP Fusion CRM integration. It includes fields for URL, Client ID, and Client Secret, with a button labeled Authorize with Mautic at the bottom.

We will need to locate pieces of information. Your Mautic URL, Client ID and Client Secret.

To do this, log in to Mautic and click on the gear icon in the top right, then choose ‘Configuration’.

The dashboard interface features a line graph of Contacts Created over a month. A red arrow highlights the Configuration option on the right sidebar, which includes Themes, System Info, and WP Fusion CRM integration settings.

Click on ‘API Settings’ and select ‘Yes’ for API Enabled and ‘Enable basic auth’

Then, click on ‘Save’.

Screenshot of Mautics configuration interface highlighting API Settings with WP Fusion CRM integration. Options include API enabled? with Yes selected, and Enable HTTP basic auth? with Yes chosen. Red arrows direct attention to the Save, Save & Close, and Cancel buttons.

Click on the gear icon again in the top right, then choose ‘API Credentials’.

In the configuration settings interface, you can manage API settings with options for enabling API and HTTP basic authentication. Text boxes set the Access token lifetime to 60 minutes and Refresh token to 1 day. Enjoy seamless WP Fusion CRM integration from the navigation menu on the right.

Click ‘New’ to create a new set of credentials.

Screenshot of the Mautic dashboard displaying the API Credentials section, pivotal for WP Fusion CRM integration. A red arrow highlights the + New button on the right, suggesting an option to create new API credentials. Options for name, public key, secret key, and ID are listed.

‘Name’ – Name of your app or something you recognize.

‘Redirect URL’ – Copy the Redirect URL in the WP Fusion setup on your WordPress site.

Screenshot of the Mautic setup page showing fields for URL, Client ID, and Client Secret, with a button labeled Authorize with Mautic. A note with a URL for redirect settings is highlighted in red—perfect for those setting up WP Fusion CRM integration.

And make sure you select ‘OAuth2’ as ‘Authorization Protocol’. Then Click ‘Save’.

Screenshot of Mautics New Credential setup page with WP Fusion CRM integration. The form displays fields for Authorization Protocol, Name, and Redirect URI. A red box highlights the form, and a red arrow points to Save at the top right.

Finally, return to WordPress and enter your Mautic URL, Client ID, and Client Secret, and click on ‘Authorize with Mautic’. And accept the Application.

A prompt requesting connection of the WP Fusion CRM integration to an account. It includes two buttons: Accept in blue with a red arrow pointing to it, and Deny in red. At the bottom, it reads Copyright 2022 Mautic.

Once the connection is completed, click Save Changes below to save the changes.

That’s it! Your site is connected, and new WordPress users and customers will automatically be synced with Encharge in real time.

#Webhooks

Using webhooks in Mautic campaigns, you can automatically sync tag changes and contact updates from Mautic back to WordPress. You can even import new users based on Mautic contacts.

Screenshot of the Send a webhook settings window for WP Fusion CRM integration. Fields include Name, Execute this event, URL, Method, and Timeout. Headers listed are contact_id, access_key, and wpf_action with example values. Options for updating or canceling are shown.

For more information, see the documentation on Mautic Webhooks.

#Site tracking

WP Fusion includes a copy of the Mautic tracking scripts, which can be enabled on the General settings tab.

Screenshot of Mautic Site Tracking settings showcasing options like Enable Mautic site tracking and Identify logged in users to Mautic. Seamlessly merge this with WP Fusion CRM integration to enhance visitor tracking by connecting anonymous visitors with contacts post-signup.

When site tracking is enabled, any new users, customers, or form submissions will automatically be identified to Mautic, and their page views will be tracked.

For more information, see the Site Tracking documentation.

Was this helpful?