ABSYZ ABSYZ

  • Home

    Home

  • About us

    Who We Are

  • Our Expertise

    What we Do

  • Our Approach

    How We Do It

  • Products

    What We Made

  • Industries

    Who We Do It For

  • Clients

    Whom We Did It For.

  • Article & Blogs

    What Experts Think

  • Careers

    Join The Team

  • Get In Touch

    Let’s Get Started

ABSYZ

Web 2 Lead(Using Google ReCaptcha)

Home / Article & Blogs / Web to Lead / Web 2 Lead(Using Google ReCaptcha)
By khushmeet Kaur inWeb to Lead

Salesforce Web to Lead:- Salesforce Web to Lead is used to capture the leads from the company website and store information in the Salesforce System itself. This functionality doesn’t require any integration this can be achieved from the standard Salesforce functionality

This salesforce out of box functionality allows users to create a lead from the company website itself but it can also lead to creating junk records in the system, So it certainly became a priority to prevent the junk records entering the system.

Spring’17 introduced the functionality to filter the records before entering the system using the Google reCaptcha.

Google Recaptcha is a free service that prevents spam or junk data from entering into the system.

Steps to create an API Key with Google Account:-

  1. Login to the google account, Once logged in to the account Register here for reCaptcha with google.
  2. While creating the new captcha key, enter the domain name where the webpage has to be hosted if the domain name is not entered precisely the captcha will throw an error.
  3. After registering you will get a Secret key and Site key, copy and save it for the later use.

Note: After clicking on the register, please wait for 30 minutes before testing the keys as Google will take some time to activate the keys.

Salesforce Setup:- 

  1. Go to the Setup->Feature Settings->Marketing->Web-to-Lead.
  2. Click on the Create Web-to-Lead Form.
  3. Select the fields you want in the form, Return URL where the user will be redirected after saving the record.
  4. Check the include reCAPTCHA in HTML and create a new record from the lookup as entering the details for the
  5. Secret Key, Site Key which was generated earlier, and the API Pair key nickname to identify the name in future
  6. Click on generate to get the HTML version of the form.
  7. With the few modifications, the HTML code can be embedded into the webpage.
  8. If the leads are not getting generated comment the line.
  9. For Example:-<!–  ———————————————————————-  –><!–  NOTE: Please add the following <META> element to your page <HEAD>.      –><!–  If necessary, please modify the charset parameter to specify the        –><!–  character set of your HTML page.                                        –>

    <!–  ———————————————————————-  –>

    <META HTTP-EQUIV=”Content-type” CONTENT=”text/html; charset=UTF-8″>

    <script src=”https://www.google.com/recaptcha/api.js”></script>

    <script>

     function timestamp() { var response = document.getElementById(“g-recaptcha-response”); if (response == null || response.value.trim() == “”) {var elems = JSON.parse(document.getElementsByName(“captcha_settings”)[0].value);elems[“ts”] = JSON.stringify(new Date().getTime());document.getElementsByName(“captcha_settings”)[0].value = JSON.stringify(elems); } } setInterval(timestamp, 500); 

    </script>

    <!–  ———————————————————————-  –>

    <!–  NOTE: Please add the following <FORM> element to your page.             –>

    <!–  ———————————————————————-  –>

    <form action=”https://test.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8″ method=”POST”>

    <input type=hidden name=’captcha_settings’ value='{“keyname”:”Catpcha”,”fallback”:”true”,”orgId”:”00D0l000000Dif3″,”ts”:””}’>

    <input type=hidden name=”oid” value=”00D0l000000Dif3″>

    <input type=hidden name=”retURL” value=”http://absyz.com”>

    <!–  ———————————————————————-  –>

    <!–  NOTE: These fields are optional debugging elements. Please uncomment    –>

    <!–  these lines if you wish to test in debug mode.                          –>

    <!–  <input type=”hidden” name=”debug” value=1>                              –>

    <!–  <input type=”hidden” name=”debugEmail”                                  –>

    <!–  value=”khushmeet.kaur@absyz.com”>                                       –>

    <!–  ———————————————————————-  –>

    <label for=”first_name”>First Name</label><input  id=”first_name” maxlength=”40″ name=”first_name” size=”20″ type=”text” /><br>

    <label for=”last_name”>Last Name</label><input  id=”last_name”

    maxlength=”80″ name=”last_name” size=”20″ type=”text” /><br>

    <label for=”email”>Email</label><input  id=”email” maxlength=”80″ name=”email” size=”20″ type=”text” /><br>

    <label for=”company”>Company</label><input  id=”company” maxlength=”40″ name=”company” size=”20″ type=”text” /><br>

    <label for=”city”>City</label><input  id=”city” maxlength=”40″ name=”city” size=”20″ type=”text” /><br>

    <label for=”state”>State/Province</label><input  id=”state” maxlength=”20″ name=”state” size=”20″ type=”text” /><br>

    <div class=”g-recaptcha” data-sitekey=”6LeMqVwUAAAAALo4KJEnZhC_iN1RLAzHIt-jbdZ5″></div><br>

    <input type=”submit” name=”submit”>

    </form>

    <input type=hidden name=’captcha_settings’ value='{“keyname”:”Catpcha”,”fallback”:”true”,”orgId”:”00D0l000000Dif3″,”ts”:””}’>

    And verify if the leads are getting generated or not.

    Note:-The google Recaptcha will not work on the local system for the testing purpose but still you will be able to test the form by entering the required information in the form fields.

Google CaptchaSFDCWeb to lead
167
Like this post
3 Posts
khushmeet Kaur

Search Posts

Archives

Categories

Recent posts

All About The OmniStudio FlexCards

All About The OmniStudio FlexCards

Boost Customer Experience With Repeater Widget in CRM Analytics

Boost Customer Experience With Repeater Widget in CRM Analytics

Enhance Insights Using Custom Tooltips In CRM Analytics

Enhance Insights Using Custom Tooltips In CRM Analytics

Net zero as a Service In CPG Industry

Net zero as a Service In CPG Industry

How Do We Import an External Library into Salesforce Lightning?

How Do We Import an External Library into Salesforce Lightning?

  • The Agile Organization: What and How
    Previous PostThe Agile Organization: What and How
  • Next PostImpact of COVID-19 on Indian economy
    The Agile Organization: What and How

Leave a Reply (Cancel reply)

Your email address will not be published. Required fields are marked *

*
*

ABSYZ Logo

INDIA | USA | UAE

  • About us
  • Article & Blogs
  • Careers
  • Get In Touch
  • Our Expertise
  • Our Approach
  • Products
  • Industries
  • Clients
  • White Papers

Copyright ©2022 Absyz Inc. All Rights Reserved.

youngsoft
Copy
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “ACCEPT ALL”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent. Privacy Policy
Cookie SettingsREJECT ALLACCEPT ALL
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

SAVE & ACCEPT