Hi,
We currently have a bespoke form on our site that posts data back to HubSpot using the API. This seems to work well and is creating data as we expect. We’ve noticed a strange issue when we add some HubSpot tracking code to the site. When the code is added, it would appear that the contacts that are created via the API are then simultaneously being updated by what would appear to be the tracking code. We think this is happening as we change some of the data from the form (we append a value to the phone field) before sending via the API, however when we add the tracking code the phone field gets updated by the value that is in the form in the browser and without the value we’re adding on. We’ve verified that there’s no way our API code can send the data without the appended value, so at the moment the assumption is that the tracking code is taking that phone field value and updating it in HubSpot. Can it even do that?
The embed code looks like this (reference id of js file removed):
<!-- Start of HubSpot Embed Code -->
<script type=“text/javascript” id=“hs-script-loader” async defer
src=“//js-eu1.hs-scripts.com/XXXXXXXX.js”></script>
<!-- End of HubSpot Embed Code -->
Any ideas?
Thanks