To start tracking user activity on your Magento 2 store, you need to add the HumCommerce tracking code to the </head> tag of your website.
Follow these steps to add the tracking code to the head tag of your website.
Step 1: Start by copying the tracking code from your HumCommerce dashboard.
Step 2: Login to your Magento 2 admin panel –
Step 3: Go to Content => Configuration (under Design) –
You’ll see the Design Configuration page –
Step 4: Click on the Edit button for your current theme.
Step 5: Expand the HTML Head section in your theme settings –
Step 6: Click on the Save Configuration button in the top right corner of the theme settings page.
You’ll see the following message on saving the configuration –
You have now pasted the HumCommerce tracking code successfully.
Once the first visitor comes to your website after code pasting, you’ll start seeing the active dashboard.