Short answer
HubSpot's KB for Wix: in the site dashboard go to Settings > Advanced > Custom Code, click Add Custom Code, paste the tracking code, apply it to All pages with Load code on each new page, and place it in Body - end. That also loads chatflows on every page.
1. Your code
Tracking code settings in my demo portal, Hub ID blurred.

2. Check it works
See checking the tracking code.