How to troubleshoot the HubSpot Tracking Code for Wordpress plugin

Last updated: December 14, 2016

Available For:

Product: HubSpot Marketing
Subscription: Basic, Professional, & Enterprise

The HubSpot for Wordpress plugin has been deprecated and replaced by the HubSpot Tracking Code for Wordpress plugin. HubSpot no longer develops nor supports the features of the HubSpot for Wordpress plugin. 

Adding wp_footer to your theme

In order for the HubSpot plugin to add HubSpot's tracking code to your site, you must include the wp_footer function in your WordPress theme's footer. Most WordPress themes include this by default, but if your theme does not, you will need to include the following PHP tag in your theme's footer file (usually named footer.php):

If you are a Wordpress admin, you can edit the footer by navigating to Appearance > Editor. For more information on the footer.php function, check out WordPress's documentation here.

User-added image
User-added image

After ensuring that your theme's footer includes <?php wp_footer(); ?>, follow these steps to check that the tracking code is firing.

Was this article helpful?