Form API not setting page views data in new contacts
Hello,
I am using the form API for submits in my page and I am not getting the page views data and original source for new contacts. On already existing contacts I do get the contact’s activity on my page.
I don’t know if there is any restriction related to new contacts. But when using directly the HubSpot form I do get the info.
I have read related forums and checked all the issues named: cookie tracking enabled, proper encoding, etc. I don’t know what could be the problem, specially because it is working fine with already existing contacts.
Form API not setting page views data in new contacts
@claudvilla My apologies for not getting back to this sooner. I don’t see an issue on the page with the tracking code or the form. Can you paste to me the actual API call you make to HubSpot? I would like to see after your code how the actual body of the HTTP call is formatted.
POST https://forms.hubspot.com/uploads/form/v2/:portal_id/:form_guid - Send form submission data to HubSpot. Form submissions from external sources can be made to any registered HubSpot form. You can see a list of forms on your portal by going to...
Form API not setting page views data in new contacts
Yes, the tracking code is included. Is not working only for new contacts. On already existing contacts, I can see the page visits before the form submit.
Also, I can see the new contact’s activity after the form submission.
Form API not setting page views data in new contacts
@claudvilla Something seems off then for sure. Have you tested with a HubSpot Form? That could ensure that the tracking code is set up everywhere properly. Do you have an example contact you could share with me? Do you know if that contact visited other pages before the landing page with your form on it?
the form submission doesn’t seem to be linking to a page. The page should be clickable and it is odd that is has the same name as your form. Is that correct?