1. Home
  2. HumCommerce Integration
  3. How to add tracking code on your site?

How to add tracking code on your site?

To leverage Humcommerce features you just need to add tracking code in the head tag of your site. You can also check if an extension is available for your platform.

Get Tracking Code

To get your tracking code, follow the following steps:

  1. Go to dashboard, If you are trying to integrate site for the first time you will see tracking code on the first screen.
  2. If you had temporarily removed tracking code and want to copy the code again click on Get Started.
  3. Click on Start Tracking Users.
  4. Copy the tracking code.

Add tracking code

To enable tracking copy the code and paste it before ending of the <head> tag.

Here are some examples:

How to add HumCommerce tracking code to your WordPress store?

  1. Login to your WordPress dashboard.
  2. Go to Appearance > Editor menu in the left sidebar:
  3. You’ll see the Edit Themes page with styles.php selected in the right sidebar.
  4. Click on the header.php tab to load header.php file in the editor. Paste the HumCommerce tracking code just above the </head> tag.
  5. Click on Update File button after you’ve pasted the tracking code. You’ll see the following confirmation message:Confirmation message

How to add HumCommerce tracking code on your Magento 2 store?

  1. Log in to your Magento 2 admin panel:Login to Magento 2 Admin Panel
  2. Go to Content => Configuration (under Design):Configuration submenu in Content
  3. You’ll see the Design Configuration page:Design Configuration page
  4. Click on the Edit button for your current theme.Current theme settings
  5. Expand the HTML Head section in your theme settings:Paste tracking code
  6. Click on the Save Configuration button in the top right corner of the theme settings page.
  7. You’ll see the following message on saving the configuration:Design Configuration page

How to add HumCommerce tracking code to your Shopify store?

  1. Login to your Shopify account and click on the Settings button in the bottom left corner of the page:Click Settings
  2. Click on the Online Store (under Sales Channels) tab from the left sidebar.Click Online Store
  3. Click on the Customize button on the Online Store > Themes settings page:Customize under Themes
  4. Click on the Theme Actions button in the bottom left corner of the page.
  5. You’ll see a drop-down list of actions. Click on the Edit Code action:Edit Code in Theme actionsYou’ll see the following screen:

    Edit Theme.liquid

  6. Click on the theme.liquid file in the Layout menu to access theme code.
  7. Paste the HumCommerce tracking code just above the </head> tag in the code.Paste tracking code in theme.liquid
  8. Click on the Save button to save the changes.

With that, you are all set to explore HumCommerce Features. You will be able to see real-time data in the dashboard.

Updated on May 8, 2019

Was this article helpful?

Related Articles