Short answer
HubSpot's KB: install the module and grant access with Connect app. A Website Grader Widget Form is created automatically. For external sites, copy the code and paste it before the closing body tag.
1. In HubSpot
The relevant screen in my demo portal.

2. Worth knowing
Edit the auto-created form before launch.