On our website product pages, we are collecting the Product Trial requests in pop-up forms (on top) and Contact Us requests from the form in the bottom of the page. Unfortunately, Hubspot tracking code - code is 404141 - does not collect the data from pop-ups at all, but in the case of Contact Us form, it works well.
Our Dev team was trying to fix the issue performing the following actions:
• We were trying to move up Hubspot tracking code just after and moving it down before - no effect.
• We were trying to use dev tools debugging the issue and figured out the source of the problem:
- Hubspot tracking code adds its own handler to all “submit” events.
- When pop-up window opens, our script grabs specific web form and embeds it into the pop-up layout – wherein Hubspot tracking code event disappears and the pop-up window remains invisible.
We could not find any solution to fix it...
Would community members be so kind as to find the best possible way to fix this issue?