Skip to content

Instantly share code, notes, and snippets.

@dexit
Last active November 5, 2025 17:10
Show Gist options
  • Select an option

  • Save dexit/7ae372af947f19a6c3518eaca4490b33 to your computer and use it in GitHub Desktop.

Select an option

Save dexit/7ae372af947f19a6c3518eaca4490b33 to your computer and use it in GitHub Desktop.
Bypass Hubspot non-Hubspot form collection collectforms use with siteid. Ignore a specific non-Hubspot form from being collected I noticed that when you specify in HubSpot to collect info from non-HubSpot forms, it attempts to add the script collectedforms.js to your website. However, before doing so, it checks to see if it's already installed b…
<script type="text/javascript" id="CollectedForms-PORTALID" crossorigin="anonymous" data-leadin-portal-id="PORTALID" data-leadin-env="prod" data-loader="hs-scriptloader" data-hsjs-portal="139581107" data-hsjs-env="prod" data-hsjs-hublet="eu1"></script>
<script>console.log('bypass loaded')</script>
<html>
<!-- PORTALID is the portal id of your Hubspot instance, and add this as the most top HEAD script to load as fast as pos. -->
<script type="text/javascript" id="CollectedForms-PORTALID" crossorigin="anonymous" data-leadin-portal-id="PORTALID" data-leadin-env="prod" data-loader="hs-scriptloader" data-hsjs-portal="139581107" data-hsjs-env="prod" data-hsjs-hublet="eu1"></script>
<script>console.log('bypass loaded')</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment