Tracking Code

Install and use the HubSpot WordPress plugin

Last updated: October 28, 2019

The HubSpot All-In-One Marketing – Forms, Popups, Live Chat WordPress plugin allows you to easily connect your WordPress site and HubSpot account. With the plugin, the HubSpot tracking code is automatically added to your WordPress pages, and you can access many of HubSpot's tools directly from your WordPress account.

To install and use the plugin, your account must meet the following requirements:

  • Your website or blog must use a WordPress.org install, or be on the WordPress.com Business plan. Any other plan with WordPress.com (e.g., Premium, Personal) will not allow for plugins or JavaScript and will not be compatible with the plugin.
  • Your WordPress version should match the plugin requirements. This is stated in the plugin page's right sidebar next to WordPress Version.
  • The wp_footer function must be included in your WordPress theme’s footer file (footer.php). This function is required for the tracking code to be installed on every page of your site.
  • You must be a WordPress admin to install plugins for your site. 

Install the plugin

You can add the plugin directly from your WordPress account following the instructions below, or download the plugin as a .zip file and upload it to your account.

Please note: if you would prefer to install the plugin from a zip file, download the plugin here, then upload the plugin in your WordPress account. 

  • Click Activate Plugin.
  • In the left sidebar menu, navigate to HubSpot. wordpress-plugin-update-hubspot-sidebar
  • Click Log in to your account to finish the installation process. If you haven't set up a HubSpot account yet, you'll be prompted to create one.

If you need to change the HubSpot account connected to the plugin:

  • In the left sidebar menu, navigate to HubSpot > Settings
  • Below the Connected to HubSpot Hub ID field, click Disconnect this accountwordpress-plugin-hubspot-account-information-in-plugin
  • In the dialog box, click Yes, Disconnect, then click Ok

Once you've successfully installed the HubSpot All-In-One Marketing – Forms, Popups, Live Chat, you can create HubSpot forms from WordPress, and, if you created a new account, log in to HubSpot to access the rest of your free CRM features 

Use the plugin

Once you’ve successfully installed the plugin, you can create forms, monitor new contacts and create lists from within your Wordpress account.

On the left panel in your Wordpress account, you have access to the following:

  • Live chat & chatbots: add live chat to your website and let site visitors chat with you in real time. Set up automated chatbots to respond to your visitors when you aren’t online.