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…
Hey, @SavanHMC Is it possible to share more complete details? It’s likely the community cannot troubleshoot this issue without seeing the full error message.
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 -
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.
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.