Failing to Connect WordPress Site w/ HubSpot Plugin

Hi there, HubSpot community.

I’ve been trying to connect my website with my HubSpot accout for many days now. It keeps failing as I stuck in an infinite loop of loging into HubSpot account, hitting the connect button, and getting booted out of WordPress only to have to re-login to the site again.

Note that I’ve already placed the tracking code into the website, and it’s working fine from my recent check. HubSpot

Currently, I am using Microsoft Edge and disabling tracking prevention while allowing all cookies tracking on my browser. Incognito mode is used to test things as well. Site security is set to moderatly low and we temporary disable CSP in an attempt to isolate the issue further.

From the console log of the browser it reports something along of…

[hub-http] EarlyRequester token refresh attempt failed with status 400…

“https://app.hubspot.com/api/login-verify/” and a part of PortalID script seems to have some problem getting the login verification done right.

Do you guys have any suggestion on this? I’ve seen other post with similar problems, but mine seems very strange compared to them.

Hey, @SavanHMC :waving_hand: Is it possible to share more complete details? It’s likely the community cannot troubleshoot this issue without seeing the full error message.

Best,

Jaycee

Sorry for the late reply due to weekend and @Jaycee_Lewis

Here’s the image of the error shown in the console log:

Are you still there @Jaycee_Lewis ? I do need your help though, or anyone in the community.

I really want to use HubSpot on the site, but **bleep**, I am hitting the wall in fixing this myself.

I’m using Mozilla and I get this error -

Firefox Can’t Open This Page

To protect your security, app-eu1.hubspot.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window. I have made exceptions to these sites on Firefox, but no joy. Hubspot doesn’t work with Wordpress anymore - for me, at least. Inspection/Browser errors shown below -

Try reading my reply to my own post here. It should help you get going.

Otherwise, I have no idea how to help, and your best bet lie in the HubSpot Tech Support team.

I’m having similar issues with my Firefox even with Firefox Tracking Protection disabled. However it’s working just fine in my Google Chrome!

Right, I completely forgot to tag this post as resolved. Took me too long to fix this, but I have to give credit to the HubSpot Tech Support team for the helping clue.

If anyone accidentally find this post due to a HubSpot plugin connection issue on WordPress that looks like this one, try following the points to see how it works for you.

1) If you have a “paid plan” for HubSpot, I recommend you to contact HubSpot tech support immediately. Ohterwise, abuse the 14-day trial to get in touch with the support. At the very least they will ask you for a HAR file (HTTP Archive) from different browser longin attempts.

Open up your Developer Console for that browser, the navigate to the Network tab. Tick “Persist Log”, and perform the whole procedure to write out a big network log. Export the file and send to them.

2) As shown in the knowledge base, HubSpot plugin for Wordpress have a few requirements that you need to follow:

  • You need Administrator priviledge to install plugin in your WordPress.
  • Your HubSpot account should be have the Administrator access as well.
  • HubSpot plugin, like many other external plugins, requires tons of external service to work. Hence, persistent connection via cookies are a must.
  • I’m not sure if HubSpot tracking code is needed if you have installed the plugin. I just inject it through some decent code injector plugin.

3) As such, there are a couple things that could prevent the successful connection.

  • Lacking adminstor priviledge in ANY accounts.
  • Your server header file has an extremely strict Content Security Policy & Set Cookie configuration. See what file is being used, i.e. Apache, NGINX, etc, and do some adjustments. MDN website can shed more light into HTTPS settings through here.
  • Potential plugin conflicts with others. If you gonna use HubSpot as your primary CRM solution, it’s better to have just HubSpot. Better yet, check if additional CRM-related plugins are compatible with HubSpot to save yourself from an unforeseeable headache later.
  • Adjust the cookies setting in your browser to allow Third-party Cookies usage, something like that. Don’t worry about privacy that much, because we all surrender it to most major service providers a long time ago in order to get important things done.

Mine was just header file config causing the problem. Maybe this could help you identify it further, or make you think twice about using HubSpot in the future.