CRO & Landing Pages

OTP lead forms: cut drop-off with SMS autofill

Adding OTP verification to a lead form is the quickest way to stop fake and mistyped phone numbers. It also adds a step where real buyers drop off. The fix isn't removing the OTP. It's making the code fill itself in on Android and iPhone, and measuring the OTP step on its own so you can see what it actually costs you.

Why Indian lead forms use OTP

For real estate, education, healthcare and loan advertisers in India, the phone number is the lead. Sales teams call within minutes, and a wrong number is wasted media spend. An OTP step proves that a real person entered a phone they're holding.

The cost is friction. The user has to leave the page, open SMS, memorise six digits, come back and type them. On a slow 4G connection, or when the SMS takes 20 seconds to arrive, many people give up. Most teams never measure how many, because their analytics only tracks the final "thank you" page.

Make the code fill itself in

Both major mobile browsers can fill an SMS code into your form without the user switching apps. You need the right input markup and the right SMS format.

The input field

Google's web.dev guidance on SMS OTP forms recommends this setup:

  • type="text", not type="number". Number fields can drop leading zeros and add spinner buttons.
  • inputmode="numeric" to bring up the number keypad on mobile.
  • autocomplete="one-time-code" so Safari on iPhone suggests the code from the incoming SMS above the keyboard.
  • An optional pattern="\d{6}" that matches your code length.

```html <input type="text" inputmode="numeric" autocomplete="one-time-code" pattern="\d{6}" required> ```

The SMS text

The last line of the message should bind the code to your domain, in this format:

@www.yourbrand.in #482913

According to Google's WebOTP documentation, the domain has no https://, path or port, and there's a single space before the #. Human-readable text goes above it, and the whole message should stay within 140 characters. Binding the code to your domain also means browsers won't suggest it on a look-alike site.

For Indian senders, this exact format has to be part of the SMS template registered on your DLT platform. If the registered template doesn't include the @domain #code line, your vendor can't send it. Ask them to register a new template before your developer writes any code.

Android: the WebOTP API

On Android, Chrome doesn't read the autocomplete hint. It uses the WebOTP API instead, which works in Chrome 84 and later and needs HTTPS. When the SMS arrives, Chrome shows a bottom sheet. The user taps Verify, and the code is filled in and can submit automatically. A short script handles this. Feature-detect with 'OTPCredential' in window and cancel the request if the user types the code by hand. Google's documentation has a ready snippet.

Two catches: the SMS must arrive on the same phone that's browsing, and messages from a sender saved in the user's contacts won't trigger the prompt.

Measure the OTP step separately

Before and after the change, you need three numbers. Fire GA4 events for each stage:

EventWhen it fires
form_startUser types into the first field
otp_sentPhone submitted, SMS requested
otp_verifiedCorrect code accepted
generate_leadLead saved to CRM

The gap between otp_sent and otp_verified is the OTP tax. Here's an illustrative example. A Pune real estate campaign at ₹18,000 a day gets 300 otp_sent events and 195 otp_verified, so 35% drop off at the OTP step. If autofill raises verification to 240, that's 45 more verified leads a day for the same spend. Cost per verified lead falls from about ₹92 to ₹75.

Also watch time to verify. Log a timestamp with each event. If many users take more than 30 seconds, look at your SMS vendor's delivery speed before you blame the form.

If you're unsure whether your current events fire cleanly, our checklist on the Google tag upgrade to Tag Manager containers covers duplicate-event checks.

Design details that matter

  • Show the number back with an "Edit" link. A typo found at the OTP screen shouldn't mean starting over.
  • Resend after 30 seconds, with a visible countdown, and offer a WhatsApp or voice-call fallback after the second failure.
  • Ask for the phone number first and the OTP last. Don't put the OTP in the middle of a long form.
  • Keep the user on the same page. A full page reload between steps breaks WebOTP and loses context.
  • Send OTP-verified leads only to Google Ads and Meta as conversions. This helps bidding steer away from junk, a theme we covered in fixing junk leads from Meta lead ads.

If Google Ads rates your page's landing page experience poorly, a slow OTP step adds to that. Our guide on fixing a below-average landing page experience covers the speed side.

What to do this week

  1. Add form_start, otp_sent and otp_verified events, and record a week of baseline data.
  2. Update the OTP input to type="text", inputmode="numeric" and autocomplete="one-time-code".
  3. Ask your SMS vendor to register a DLT template ending in @yourdomain #{code}.
  4. Add the WebOTP script for Android Chrome, with manual entry still working.
  5. Test on one Android phone and one iPhone, using a number not saved as a contact.
  6. Compare OTP verification rate and cost per verified lead after two weeks.

FAQ

Should I remove OTP to get more leads?

Only if your sales team can handle more bad numbers. In our experience, the better trade is to keep OTP and remove its friction, then pass only verified leads to your ad platforms.

Does SMS autofill work on every phone?

No. It works in Safari on iPhone (iOS 14 and later) and in Chrome 84 and later on Android. Other browsers fall back to manual typing, which is why the plain input must always work.

Can I use WhatsApp instead of SMS for the OTP?

You can offer it as a fallback. Browser autofill only works with SMS, though, so WhatsApp codes still need to be typed in by hand.