The HubSpot tracking code helps you monitor your website's traffic. The tracking code is automatically included on HubSpot pages; however, if you have pages on your website that are not hosted on HubSpot, you must install the HubSpot tracking code to capture analytics for those pages.
Please note:
Follow the steps here to install your tracking code. If you have already installed the tracking code, learn how to verify installation and troubleshoot.
To copy your tracking code:
Please note: if you are using Wordpress, select Yes, and then click Next, to access a link to install the Contact Form Builder for WordPress – Conversion Tools by HubSpot plugin.
Please note: the tracking code is different for every HubSpot account; you must copy the code directly from your account.
</body>
tag in the HTML code for each page of your site. You can then test your HubSpot tracking code to verify it is working.Click the links below for specific instructions on installing the code on different website hosts:
Please note: if you're using WordPress, you can opt to install the Contact Form Builder for WordPress – Conversion Tools by HubSpot plugin instead of following the WordPress instructions in this article.
While it is recommended that you use the Contact Form Builder for WordPress - Conversion Tools by HubSpot plugin, you can also install the tracking code manually. If you manually add the tracking code and have a HubSpot Marketing Hub Basic, Professional, or Enterprise account, HubSpot will not be able to differentiate WordPress posts versus pages in analytics.
Please note: if your website is hosted on WordPress.com, you will not be able to add the HubSpot tracking code to your website unless you are on their Business plan. The other plans (e.g., Premium, Personal) do not allow users to add any JavaScript code.
Please note: if you're using the Shopify integration, you don't need to install the tracking code separately.
Follow the steps above to copy the HubSpot tracking code in your HubSpot account. Then follow Magento's design user guide for instructions on installing third-party JavaScript code in the Header HTML.
Use the App Market in Wix to add an HTML widget to your page:
There are two ways to add your HubSpot tracking code to your Joomla site. With either method, you'll first need to copy your HubSpot tracking code following the steps above.
You can select an extension from the Joomla Extension Directory where you can paste in the HubSpot tracking code. Alternatively, you can follow the steps below to install the tracking code: