To get the Leadbox installed on your site, you'll need to get the embed code.
When you signed up, the embed code was displayed at the end of the signup form. Also, you can find the embed code from Leadferno under Leadbox > Get Embed Code button in the upper right.
The embed code has a unique identifier (data-bid) for your business and looks like this:
<script src="https://widget-dev.leadferno.com/leadbox.js" data-leadferno data-bid="a3ar2o91-144n-3w17-eich-490ej13o1e4l" data-url="https://api-dev.leadferno.com/v0" data-ga-id=""></script>
We recommend the embed code gets placed just before the closing body tag on your site. Depending on the website platform you're using, there are a number of options to edit a single element in your template to ensure the embed code appears on every page of your site.
Google Tag Manager Install For Leadbox
If you're using Google Tag Manager (GTM) to install the Leadbox, the embed code will be slightly different. Please ensure to put your unique identifier (data-bid) into the following code below for GTM:
<script>
(function() {
var leadboxScript = document.createElement('script');
leadboxScript.setAttribute('src', 'https://widget.leadferno.com/leadbox.js');
leadboxScript.setAttribute('data-leadferno', 'true');
leadboxScript.setAttribute('data-bid', 'a3ar2o91-144n-3w17-eich-490ej13o1e4l');
leadboxScript.setAttribute('data-url', 'https://api.leadferno.com/v0');
leadboxScript.onload=function() {
if (document.readyState === 'complete' && document.getElementById('leadbox-iframe') == null) {
Leadbox.init();
}
}
document.body.appendChild(leadboxScript);
})();
</script>
Content Management Systems Install
Leadbox embed instructions for specific website types and content management systems: