How to Track Conversion on HubSpot Embedded Forms

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:

<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
  portalId: "ACCOUNT_ID",
  formId: "FORM_ID",
  onFormSubmit: function (form)
  {
    _oktrk('send', {
      tag: 'TAG_NAME',
      firstName: form.find('input[name="firstname"]').val(),
      lastName: form.find('input[name="lastname"]').val(),
      email: form.find('input[name="email"]').val()
    });
  }
});
</script>

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.

Integrations

  1. How to Set Up The Marketo Integration
  2. How to Install Social Insights for Salesforce
  3. Salesforce Social Insights Data and Reports
  4. How to Install Social Analytics for Salesforce
  5. How to Install Social Advocacy For Salesforce
  6. How to Set Up The Eloqua Integration
  7. How to Set Up the HubSpot Integration
  8. How to Set Up The Salesforce Integration
  9. How to Set up The Microsoft Dynamics Integration
  10. Microsoft Dynamics Social Activity Entity
  11. Oktopost Solution Package for Microsoft Dynamics
  12. How to Set Up The Mautic Integration
  13. How to Set Up the Bitly Integration
  14. How to Set Up the Feedly Integration
  15. How to Set Up the Act-On Integration
  16. Feedly Custom Sharing with Oktopost
  17. Act-On Integration: Segmenting Lists Using Social Data
  18. Act-On Integration: Social Lead Scoring
  19. Conversion Tracking With Marketo Forms 2.0
  20. Marketo Integration: Lead Segmentation
  21. Marketo Integration: Interesting Social Moments
  22. How to Set Up the Salesfusion Integration
  23. How to Set Up the Pardot Integration
  24. Setting up the Google Analytics integration
  25. How to Set Up the Facebook Retargeting Integration
  26. How to Create a Facebook Audience Based on Social Behavior
  27. Attributing Social to Leads in Marketo
  28. Webhooks
  29. How to Connect Oktopost to Zapier
  30. How to Create Salesforce Cases From Assignments
  31. Setting up Integration Assets
  32. Social Click URLs
  33. Salesforce Campaign Naming Parameters
  34. How to Track Conversion on HubSpot Embedded Forms
  35. How to Track Conversion on Pardot Forms
  36. How to Track Conversions on Act-On Labs Forms
  37. How to Set Up Single Sign-on With AD FS
  38. How to Set Up Single Sign-on With Okta
  39. How to Set Up Single Sign-on With OneLogin
  40. How to Set Up Single Sign-on With Google Apps
  41. How to Set Up The Facebook Lead Ads Integration
  42. Zapier Use Cases
  43. How to Set up Oktopost for Bizible
  44. How to Format Dates in Salesforce Template Fields
  45. Social Attribution Parameters
  46. Lead Parameters
  47. How to Update an Existing Social Insights Installation

Feedback and Knowledge Base