Advertisers now have the ability to enable an auto-fill functionality for web-based forms through Snapchat. This new capability makes the process of filling out forms more convenient for users, therefore strengthening the consumer-business Snapchat relationship. Websites hosted within a web view in Snapchat can enact this communication with the Snapchat Javascript SDK integration.
How to Use the Autofill Integration?
Step 1
Place the Snapchat Javascript SDK within your web page’s backend coding area.
Step 2
Request the data you wish to require for the form, such as Name or Email Address, with the snaptr(‘autofill’, request) function once the form appears on the screen. To enable this function, you will need two components: a callback function and requested fields.
To make sure the web page is fully visible before making the request, see the Page Visibility API.
Information the user has available when they agree to autofill determines which correct data populates the correlating fields. If the user does not have certain information (e.g., an email address), the field for that specific information is left empty. Additionally, if the user doesn’t have any information to populate any of the required fields, the auto-fill prompt is not activated.
Step 3
Be sure to populate specified form fields with the correct data, such as name information in the callback function, so viewers can view what they’ve entered prior to submission.
For information on Snapchat’s new terms and conditions for advertisers, see “Snap Updated Its Terms and Conditions for Ad Services.”