Website Building » Shopify » How Do I Add My HubSpot Tracking Code to Shopify?

How Do I Add My HubSpot Tracking Code to Shopify?

Last updated on January 9, 2023 @ 6:59 pm

Adding your HubSpot tracking code to Shopify ensures that you can track traffic and activity on your Shopify store from your HubSpot account. In order to add your HubSpot tracking code to Shopify, you will need to edit your theme’s code.

    1. Log in to your HubSpot account, and navigate to Settings > Integration > Tracking Code.

    2. Copy the tracking code provided.

    3. Log in to your Shopify admin panel, and navigate to Online Store > Themes > Actions > Edit code.

    4. In the Layout folder, locate the theme.liquid file and click it to open it in the online code editor.

    5. Paste your HubSpot tracking code just before the “</body>” tag, and click Save.

PRO TIP: If you are not comfortable working with code, we recommend that you reach out to a Shopify Expert or HubSpot Partner to help you with this integration.

Your HubSpot tracking code is now installed on your Shopify store! This allows you to track traffic and activity from Shopify in your HubSpot account.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.