Pass Content Type in API Form Submissions

To get an accurate attribution model, we need to pass the content type of each form submission using API.

When users submit the form on non-Hubspot websites/forms, it shows as ‘page without content type’.

There are no information in the current API docs: Create attribution reports In

As well as this article doesn’t have options to set content-type for form submission https://legacydocs.hubspot.com/docs/methods/forms/submit_form

Even if script added on all pages according to Knowledge base and developers articles: ‘content type should be pushed with your default tracking tag’. It still doesn’t appear in API form submission.

<script type=‘text/javascript’ id=‘app-script-js-after’>var _hsq = window._hsq = window._hsq || []; _hsq.push([“setContentType”, “standard-page”]);</script>

User journey:

  • You added the content type code recommended here to your external site.
  • You noticed if the contact navigates on the page, it is recognised (let me know if this is right please)
  • But if the contact submits the form this is not recognised, as you kindly sent me in the image and the report has the message “site without content type”.

+1

a much needed feature since most of the contact in our organization are created through Forms API.

+1
I have same situation.
Any help from Hubspot support how we can send page types to husbpot using tracking script ?