Web

How to Reduce Spam Leads in Salesforce With Web-to-Lead

Brock Murray
Co-Founder / COO

Post Thumbnail
Post Thumbnail

It’s always  a great feeling to get leads through your website. However it is a bit demotivating when you go to review the lead and you realize it’s SPAM! I noticed we were getting 1-2 “leads” daily around 3-4 AM, with the company name often being ‘Ranks India’. I realized the only way to block this automated spam filling out the form was to disable the submit button if the company name matches a pre-defined string.
Here is a hack that I coded in jQuery to reduce the amount of spam leads we’re receiving in our Salesforce dashboard. As you can see, when the company input (tagged as id=’company’) has something inputted (eg. keyup) it activates the function. Then it checks the value and if it matches Ranks India or a2zesolutions.com it disables the submit button. See below for the jQuery code. This needs to be placed between the <head> and </head> tags on your contact form (or landing page.)

<script type="text/javascript">
$( "#company" ).keyup(function() {
var value = $( this ).val();
if(value == 'Ranks India' || value == 'a2zesolutions.com') {
$('input[type="submit"]').attr('disabled','disabled');
}
})
.keyup();
</script>

 
 

ae80e970541929e14fce5397e7790091?s=150&d=mm&r=g Award-Winning Digital Marketing Agency

Brock Murray

Brock Murray is the COO and co-founder of seoplus+ digital marketing agency. As the driving force behind this award-winning, full-service agency, Brock's passion is helping businesses establish, grow, and maintain their online presence. With the help of SEO, PPC, social media, content marketing, and more, Brock and his team help clients of varying sizes and verticals, from small, local retailers to large, multinational enterprise companies.

View latest posts
[ssba-buttons]
Posted in Web

Want More Sales? Get 3 Tips From an SEO Expert!

Our SEO specialist will review your website and provide actionable tips to help increase your revenue -- 100% free & no-obligation!

Name*
Hidden

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

image

Passionate Marketers Striving to Make Your Life Better

Meet the team you'll work with. We can’t wait to learn more about your goals so we can achieve them together.

ABOUT US