Instant Quote / Install guides
Add Instant Quote to any other website
For a hand-built site, or any site builder not listed: where the line goes, and what to do when the estimator lands in the wrong spot.
What you need
- You or your web person can edit the website's code, or its builder has a box for custom code.
Side tab on every page
- In DeckBuild, open Settings, then Instant Quote. Under Put it on your website, find One line of code and click Copy code under the first line (the side tab).
- Paste the line just before the closing </body> tag of every page, or once in the site's shared footer. Many site builders call this footer code, footer scripts or code injection.
<script src="https://quote.deckbuild.com/embed.js" data-quote="your-name" async></script>Estimator on one page
- In DeckBuild, open Settings, then Instant Quote. Under Put it on your website, click Copy code under the second line (the estimator inside one page).
- Paste the line in the page where the estimator should appear. It fills the width of the spot and grows to fit.
<script src="https://quote.deckbuild.com/embed.js" data-quote="your-name" data-mode="inline" async></script>If the estimator shows at the bottom of the page
- Some sites move code to the top of the page (React and Next.js sites do this, and so do some HTML boxes). The estimator then lands at the end of the page instead.
- To pick the spot yourself, put this empty box where it should appear, and keep the line anywhere on the page.
<div data-deckbuild-quote></div>Check it worked
- Open your live website in a private (incognito) browser window and look for the tab, or open the page with the estimator. Code you add often does not run in the site builder's own editor or preview.
Good to know
- The website must be secure (its address starts with https). The tab does not show on an http site.
- If the site's own security settings (a Content-Security-Policy) block other sites' frames, the estimator offers a button that opens it in a new browser tab. To show it on the page, allow https://quote.deckbuild.com in the policy's script-src, frame-src and connect-src.
- Cloudflare's Rocket Loader can hold the line back. Add data-cfasync="false" to it, as shown below.
<script data-cfasync="false" src="https://quote.deckbuild.com/embed.js" data-quote="your-name" async></script>The lines above show your-name where your own name goes. Copy your own lines from DeckBuild.