If you're using HubSpot's embedded forms on your website and want to track named conversions with Oktopost, you will need to use a slightly different implementation as described in this article.
First, make sure to install the Oktopost Tracking Code on your website.
Next, copy the form embed code from HubSpot and edit it, like so:
onFormSubmit: function (form)
Replace the TAG_NAME with the conversion type you want to track and that's it. That will send Oktopost the conversion details once a user completes the form.