Code Detection

 Ensure UStat tracking code is properly deployed using these verification methods:


1. Use Code Detection Tool (Recommended)

Access: https://www.ustat.com/check.html

Steps:

  1. Open https://www.ustat.com/check.html

  2. Enter your website URL

  3. Click [Detection]

  4. Results:

    • ✅ Code Detected: "Tracking code installed successfully"

    • ❌ Code Missing: "Tracking code not detected"

  5. Click [View Installation Guide] below results for troubleshooting

       

Suggest use this tool for preliminary assessment.


2. Check Website List Dashboard

  1. Log in to UStat → Website List

  2. Locate your site → Check metrics:
    Page Views (PV) & Unique IPs

  3. Success Indicators:
    Metrics > 0 within 1 hour of deployment
    Continuous data updates

  4. If the data not update for a long time, please check the code is correctly in a valid location.


3. Browser Console Validation

  1. Open your website

  2. Press F12 → Network tab

  3. Refresh page
  4. Search: ustat.js

  5. If no loading record is found, check:

    ✅ Correct HTML script placement

    🛑 External JS blocking by your site

    🔒 Browser extension/CSP policy interference

    (Note: "CSP" = Content Security Policy)


4. Code Placement Audit

Ensure the tracking code is:

  • Placed in HTML: <head> Inside or <body> Before

  • Deployed universally: Installed in global templates (e.g., header.html)

  • Avoid restricted areas:
    Async-loaded content
    Popup/modals
    Conditional blocks
    (Prevents tracking failures/data gaps)


5. Current Visitor Verification

  1. In UStat: Click [Current Visitors]

  2. Visit your site via:
    Incognito mode Or Separate device

  3. Success: Your session appears within 2 minutes


Notes

  • Data Delay: Allow 3-5 minutes for initial tracking

  • CDN/SPA (Vue/React): Confirm code renders in final HTML

  • Special Cases:
    Internal networks
    Nginx proxies
    CSP restrictions→ Contact support@ustat.com


🙋‍♂️ Support: