Capturing HubSpot landing page conversions with custom forms

We’re having a tricky situation with our HubSpot setup. After connecting it to Salesforce we’re running into problems with duplicate contacts. Our customers often work at multiple hotels or switch between them which messes up HubSpot’s deduping system.

When someone fills out a form for new leads it sometimes gets mixed up with existing contacts. This is giving our sales team a headache trying to figure out what’s what.

We thought about using a different form that always makes a new lead no matter what. But then we’d lose all the conversion data from HubSpot forms.

I asked HubSpot for help on how to tell their system when a conversion happens with our custom form. They just sent me to their API docs and said we’d need to set up a server.

I know some coding but I’m not an expert. Is there a way to do this with PHP on the landing page? Or maybe use a ready-made API someone made on GitHub?

Any tips to point me in the right direction would be awesome. Thanks!

I’ve been in a similar situation, and we found a workaround that might help. We ended up using HubSpot’s Forms API in combination with custom JavaScript on our landing pages. This allowed us to capture form submissions and create new leads programmatically, while still tracking conversions.

Here’s the gist of what we did:

  1. We built our own form on the landing page.
  2. On form submission, we used JavaScript to send the data to HubSpot’s Forms API.
  3. We also implemented custom logic to check if the contact already existed and update accordingly.

It took some trial and error, but it gave us much more control over how leads were created and updated. The best part is, HubSpot still registered these as form submissions, so we didn’t lose any conversion data.

You might want to look into HubSpot’s Forms API documentation. It’s not as daunting as it seems at first glance. If you’re comfortable with JavaScript, you could probably set this up without needing a full server-side solution.

Working with custom integrations on HubSpot can indeed be complex. In our case, we set up a system that leveraged HubSpot’s JavaScript tracking along with a simple PHP script to process incoming data. This approach allowed us to maintain conversion tracking while bypassing some of the limitations of their native forms. The PHP solution, tied to HubSpot’s webhook system, helped us manage duplicate entries more effectively, as it allowed us to implement tailored logic for handling multiple leads without losing any conversion details.