Navigate To:
1. Lead Form Integration With JS Form SDK/Submit SDK
1. Lead Form Integration
I. To integrate the lead generation form from Google Landing Page/Form/Microsite, copy the primary function by visiting the Submit Lead JS SDK on GitHub.
SS 1: Submit Lead JS SDK Github repository.
II. Copy the primary function and add it inside the head tag of the HTML page of your website.
SS 2: Copy the Primary Function code script for Client-Side Integration.
III. Update the following key values shared by our team to the primary function.
- api_key/auth_key
- env
- host
- channel_name
- campaign_id
Note: The API key is used for authentication to avoid spam, and the campaign ID is used for mapping & tracking the lead. Hence, setting up the right API key & campaign ID is very important. |
SS 3: Update the highlighted key values in the primary function.
IV. please share the screenshot with our team.
Check the steps mentioned in the ‘Testing Lead Integration’ section.
2. Enabling OTP Verification
I. To enable OTP verification, contact our team to activate it from the dashboard/backend.
II. Copy the ‘requestOTP’ function from the Submit Lead JS SDK and paste it inside the head tag of the HTML page of your website.
SS 1: Request OTP function code script for Client-Side Integration
III. Update the following key values shared by our team to the primary function.
- api_key/auth_key
- env
- host
- channel_name
- campaign_id
IV. Test the lead form by submitting a test lead. If the test is successful, you will get the lead ID, and if it shows any errors, please share the screenshot with our team.
Check the steps mentioned in the ‘Testing Lead Integration’ section.
3. Testing The Integration
I. To test the integration, run the updated function in any browser.
II. Add all the fields & ‘Inspect’ the page.
SS 1: Right-click on the browser page & click 'Inspect'.
III. Go to the ‘Network’ tab in the ‘Inspect’.
SS 2: After filling in all the details, click on the Network tab.
IV. Click on the ‘Submit’ button in the lead form.
V. If everything is integrated correctly, then you will get the lead ID in the ‘Response’ section under the ‘Network’ tab.
SS 3: If the integration is done correctly, you will receive the lead ID in the response section.
VI. And if there are any errors, then in the ‘Response’ section under the ‘Network’ tab, you will get ‘Invalid Response’.
SS 4: You will see an ‘invalid response’ in the response section in case of any error.
VII. In case of any errors, please take the screenshot, & share it with our team.
Still, finding it difficult? Connect with our team to understand the whole process.
For any support on our products, please reach out to support@anarock.com
For any feedback, please reach out to tech-feedback@anarock.com