Connect Wordpress and Pardot Using Salesforce SSO
Installing the Pardot plugin on your Wordpress website allows you to harness the power of Pardot automation on your website without the use of code. You can build your forms in Pardot, create actions and automations based on form completions on your site, right from Pardot. Additionally, if you have a database with clearly defined attributes, you can begin to tailor the content on your website based on attributes such as roles, industries, and titles.
Imagine having the Pardot personalization and automation capabilities on your website? You can with the Pardot plugin, enhancing the end-user experience further.
Technically Speaking:
The benefit of using the Pardot plugin is the ability to add forms and dynamic content to your Wordpress website without the use of code. In order to install the plugin, you will need to be a Wordpress administrator. You will also need to be on a Pardot edition with API access. Additionally, if your organization has a Salesforce administrator you’ll want to coordinate the creation of the connected app in Salesforce.
Why now? Pardot user authentication changes
Pardot has had its own dedicated login screen – until now. Pardot user authentication will be discontinued (as of February 15, 2021), when all Pardot users will be required to use the Salesforce SSO in order to login and access Pardot. In short, your Pardot only credentials will no longer work.
Read more: What You Need to Know About Pardot Authentication (before Feb 15, 2021)
This is especially important if you are using the Pardot API for any integrations, such as the Pardot plugin on your Wordpress website. If you previously installed the plugin, you will need to go back and change the your credentials as well as create a Salesforce app in order to continue to use the Pardot plugin. I’ve been through this process, and have outlined the steps below for you to update your credentials with the Pardot plugin.
Step 1: Download the Pardot Plugin to Wordpress
- Log into Wordpress.
- Navigate to the Plugins section.
- Click on ‘Add New’.
- Search for ‘Pardot’.
- It should look like the below, and you’ll see an install button where it says active.
6. Once you click install, navigate to the Plugins tab, locate Pardot, and click activate. Then click on the Pardot settings link. You’ll want to keep this tab open as you’re going to come back to it.
Step 2: Configure your Salesforce Connected App
- In a new tab, log into Salesforce and navigate to the settings. Search for App Manager.
- On the top right corner click ‘New Connected App’.
- Complete the basic information section. You don’t need to add a logo/icon as this app will not display in the app launcher.
- Under the API (Enable OAuth Settings) section you want to make sure you complete the following:
- Check: Enable OAuth Settings
- Enter your call back URL. The call back URL points users back to the Pardot plugin. Navigate back to the tab with the Pardot plugin open and copy that URL. It should look something like this: https://[YourWordpressDomainHere]/wp-admin/options-general.php?page=pardot.
4. Under Selected OAuth Scopes be sure to select: Access Pardot Services (pardot_api) and Perform requests on your behalf at any time (refresh_token, offline_access)
5. Check the box to Require Secret for Web Server Flow.
Once you complete this step, click save. Upon saving the new app the consumer key and customer secret will be generated.
Step 3: Complete the information on the Pardot Plugin.
- While keeping your Salesforce tab open, navigate back to your Wordpress tab with the Pardot plugin.
- Change the authentication type to SSO.
3. Switch back to your Salesforce tab with your new connected app, and you should see your consumer key and customer secret. Copy and paste those values. If for some reason you closed the tab, or someone else created this App for you, you can find this by going to settings > App Manager > Find your app and click view.
Note: If you click edit you won’t see these values, you must click view.
4. Locate your Pardot business unit ID. To find the ID navigate to your Salesforce settings, search for Pardot > Pardot Account Setup > then you’ll find the ID value. Enter the value into the Wordpress Pardot plugin. Once you’ve completed all the information, click save settings.
5. Then click authenticate with Salesforce. If you aren’t already logged into your Salesforce org, you’ll be prompted to enter your credentials.
6. Once it successfully authenticates, you’ll see the authentication status turn green and it should say “Authenticated with Salesforce SSO”. From here you’ll want to select your campaign for tracking code and select save once more. You can come back to this tab at any time and change your Pardot campaign.
Once you have completed the installation above, a blue Pardot button will be added to your text editor. From here you’ll be able to add forms and dynamic content from your Pardot instance to your website without the use of code. When you click the Pardot button, you’ll see a window like the one below, where you can pick either your form or your dynamic content to embed on your website.
If for some reason you do not see your form or dynamic content on the list, you’ll want to go back to your Pardot plugin settings and clear the cache.
Next Steps
Now that you’ve completed the setup for your Pardot plugin on your Wordpress website you’ll be able to harness the power of Pardots’ personalization and automation abilities right on your website. If you have a question or have a really cool use case you just want to discuss, you can always reach out to us here.
John James
My Salesforce Account Manager notified me this week that Salesforce have now stopped developing Pardot and it will be discontinued as a standalone product…so is it worth even investing in actions like this?
Lucy Mazalon
Hi John, I can see why you may have thought this. Yes, you’re right – Pardot (the original, standalone product) is not being developed anymore. This is because Salesforce have been working to transition the Pardot data model on to the Salesforce platform – basically, instead of using Pardot only objects, Pardot will use Salesforce objects (known as object alignment). We have already seen this with connected campaigns and others. All development focus has been on the Pardot Lightning app, which is why the Classic (Pardot-only) interface will slowly be depreciated. In fact, one major step in the transition is to unify the Pardot APIs and user authentication/log in with the Salesforce ones. This action that Jen is talking to here will get Wordpress connected to Pardot via Salesforce APIs, thus future proofing your integration. Hope that makes sense now!
Valter
Hello,
After following these steps, we found this issue when trying to authenticate in Wordpress:
1800 : There was a problem in setting up your remote access
Do you know what might be causing this issue?
Thanks.
Jen
Is the Salesforce user that you’re using to connect to Wordpress an Administrator? Under step 2, number 5 double check the Selected OAuth Scopes be sure to select: Access Pardot Services (pardot_api) and Perform requests on your behalf at any time (refresh_token, offline_access)
Mary Ellen Peek
should the salesforce user not be an administrator?
I am getting the error: error=invalid_client_id&error_description=client%20identifier%20invalid
But I believe this is because we log in to salesforce from a custom domain… Where do we add our custom domain for the login.
Jen
When trying to authenticate, I am getting a pop-up with this error: “error=invalid_client_id&error_description=client%20identifier%20invalid”
Can someone please help!
Brent
I’m getting the same error message
David
Hey Jen and Brent,
I also got this error “error=invalid_client_id&error_description=client%20identifier%20invalid”
What worked for me was to temporarily add an extra Oauth scope in the Connected App in Salesforce ‘Manage user data via Web browsers (web)’. That let me authenticate per the guidance above. Once I had successfully authenticated once I removed that scope (since it shouldn’t have been necessary and I don’t feel comfortable granting the wider permission longer term).
Some people report that this also works for initial authenitcation issues (TLDR – clear your settings in Wordpress, login in incognito mode and start authentication over) https://trailblazer.salesforce.com/issues_view?id=a1p4V000001JkAsQAK&title=pardot-wordpress-plugin-a-previously-successful-salesforce-sso-connection-gets-reverted-back-to-not-authenticated-status