Skip to content

Instantly share code, notes, and snippets.

@adrianspeyer
Created January 11, 2017 19:26
Show Gist options
  • Save adrianspeyer/fd2cdd2c7a7d9599d01df53e86ff8e2b to your computer and use it in GitHub Desktop.
Save adrianspeyer/fd2cdd2c7a7d9599d01df53e86ff8e2b to your computer and use it in GitHub Desktop.
How to handle Ghostery blocking your HubSpot forms. This appends a message asking user to add your site to whitelist. Just add it to the footer in any HubSpot COS page.
$(window).load(function () {
if($("[id^='hs_form_target_module']").html() == "") {
$( ".hs_cos_wrapper.form-title" ).append( "<h6>If you are seeing this message you may have Adblock or Ghostery enabled. Please consider whitelisting our site to download the content.</h6>" );
}
});
@clarkd
Copy link

clarkd commented May 22, 2018

Sadly I don't think this works anymore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment