Skip to the guide

Add your quote form with Google Tag Manager

Load your quote form through Google Tag Manager, with a spot marked on the page.

Tag Manager adds scripts to a page, but it can't choose where on the page something shows. So mark the spot on the page, and let Tag Manager load the script.

1. Mark the spot on your page

Where the form should appear, add this to the page (your site's editor usually has an HTML or code element for it). Use your form's own address name from LeadVault:

<div data-leadvault-form="your-form"></div>

2. Add the tag

  1. In Tag Manager, Tags, New, Custom HTML.
  2. Paste:
<script src="https://leadvault.com/embed.js" async></script>
  1. Trigger: Page View on the pages with the form (for example, Page Path equals /quote), or All Pages.
  2. Save, then Submit and publish the container.

The form fills the marked spot as soon as the script loads, also on sites that change pages without reloading.

Check it

Open the page once in a browser, then in LeadVault, under On your website, type its address and press Check a page. (The line isn't in the page's HTML, so the check goes by the form having been opened there.) Then fill the form once on the live page.

Didn't answer it? Ask us.