How do I install the HubSpot tracking code on a Wix site?

Last updated: February 9, 2017

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A

To install the HubSpot tracking code on your Wix website, you'll need to use the App Market in Wix to add an HTML widget to your page.

Please note: Because Wix does not support custom coding, the HubSpot tracking code must be added to each Wix page using an HTML iFrame. Because most browsers set the referer HTTP header to the iFramed file location, rather than the URL of the page being viewed, your Page Performance tool (if you are a Marketing Basic, Pro, or Enterprise customer) may only show data for the iFrame URLs rather than the actual page URLs.

First, copy your tracking code from HubSpot. See these instructions for HubSpot Marketing Basic, Professional, or Enterprise; Marketing Free or Starter; or HubSpot Sales.

Follow the instructions below to learn how to add that tracking code to your Wix site:

  • Navigate to your Wix account where you can edit your website.
  • On the left-hand side, click App Market.
  • From this window, search for "html" until you find HTML iFrame/Embed app made by Wix > click + Add to Site.
  • Once this widget has been added to your site, click the Settings (gear) icon within this module > click the radio button next to Code > insert your HubSpot tracking code into the text box within that window > click Update.