Routing Leads to a Specific Campaign

How to pass a campaign ID in the Embed code

The BankingBridge Embed allows a custom CRM campaign ID to be placed as a variable in the Embed code for custom lead routing. Typically leads are sent to the mortgage lender’s CRM and routed based on the campaign ID established in Zapier.

BankingBridge does support lead routing based on the needs of a specific web page. When the CRM campaign ID is placed directly into the Embed code, leads are routed to that specific campaign ID and not the general campaign ID already established.

Code Samples

In this example, the BankingBridge code is shown without passing any variables:

<div id='bb-9cc13'>
  <script>
  window.BB||document.write("<script src='https://cdn.bankingbridge.com/assets/external/index.js' type='text/javascript' charset='utf-8' defer=''><\/script>")
	</script>
	<script>window.addEventListener('DOMContentLoaded', ()=>{BB.init('980668178',document.getElementById('bb-9cc13'),{type:'standalone'});})
	</script>
</div>

To route to a specific CRM campaign, pass the leadDetails:{campaignId: XXXX} as in the following example:

<div id='bb-9cc13'>
  <script>window.BB||document.write("<script src='https://cdn.bankingbridge.com/assets/external/index.js' type='text/javascript' charset='utf-8' defer=''><\/script>")
  </script>
  <script>window.addEventListener('DOMContentLoaded', ()=>{BB.init('980668178',document.getElementById('bb-9cc13'),{type:'standalone',leadDetails:{campaignId: XXXX}});})
	</script>
 </div>

To confirm that the lead has been routed to the correct campaign ID, complete a test lead submission.