APIs & Integrations

AChan9
Member

Tracking code snippet installed, but network request returning 404 error

Hi - I've been trying to set up the tracking code snippet to enable the tracking of "prospects" in the Prospects feature. Following the instructions here, (https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code) I'd tried to install the tracking snippet both using Google Tag manager and separately as a HTML snippet. However, on the "prospects" feature, it says the tracking snippet is not installed.

hubspot.PNG

 

When I try to debug as specified here (https://knowledge.hubspot.com/reports/how-do-i-know-if-my-hubspot-tracking-code-is-working), I get the screenshot below. 

Quoting from the article:

  • Next to [your Hub ID].js, you should see 304 Not Modified or 200 OK in the Status column.
  • If you see any other status or the .js code is not found, your tracking code may not be firing correctly. 

TLDR - I should be seeing a 200/304 status, but am seeing 404. Could anyone help with this?



Capture.PNG

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Tracking code snippet installed, but network request returning 404 error

Hey @AChan9 

I inspected your site (assuming it is hellowalnut.com) and I noticed that the script had some extra characters 🤔

This is what I saw:

<script type="text/javascript" id="“hs-script-loader”" src="“//js.hs-scripts.com/xxx.js”"></script>

this is what it should be

<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/xxx.js"></script>

Where xxx = your portal ID.  Hope that helps! 

0 Upvotes