Driftrock Website Inline Form Guide

How to create an inline form

Driftrock Website Inline Form Guide


Head to the Lead Capture Library and click to set up a Driftrock Website inline Lead Form




Click the ‘follow these instructions’ link to show the code you’ll need to install onto your website.


Copy and paste the script shown into the footer of your website. Where it says ‘YOUR_API_KEY’ be sure to paste in your chosen Driftrock API key. If you’ve not yet got an API key, follow the instructions to set one up.


Copy and paste the container code shown into the page in the location you’d like your inline form to be displayed.



Head to the Setup page to set up your inline form.


Display Rules

Add a page

Specify which page(s) you’d like your inline form to be displayed on in the Display Rules section. Click to add a page.




Copy and paste the URL you’d like the inline form to appear on in the URL box, or alternatively use a wildcard to show the inline form on multiple pages. 


For example:

  • Entering www.driftrock.com/* will display the inline form on all pages on the Driftrock website
  • Entering www.driftrock.com/industries/* will display the inline form on all of our Industry pages.
  • Entering www.driftrock.com/*/lead-capture will display the inline form on any page with ‘lead-capture’ at the end of the URL extension






Style & Content

Optionally set the colours you’d like your inline form to be in this section using HTML colour codes, and give your inline form some copy to explain your offering.



Fields & Consent

Add all of the questions you’d like to ask in your form in this section, as well as any custom consent text/checkboxes you’d like to display to the customer. 


Tip: We’d recommend keeping your consent text as short as possible to reduce dropoff rate.


inline form Activation

When you’re ready, head back to the Setup page to switch your inline form on.