The PX Partner List Script is a snippet of code that automatically generates a list of buyers that are currently purchasing leads through PX.
As a lead acquisition platform, PX adds new buyers and partners weekly. The PX Partner List Script helps to ensure that all partner lists are up to date and all parties work with compliant leads.
How it works
The PX Partner List Script is placed on the publisher's partner list. The script then pulls in new buyers and partners whenever PX makes an update on our list(s).
Nothing needs to be updated in TCPA Text. Standard linking to the publisher's partner lists remains the same.
When customers click on the partner information link, they are taken to the publisher partner list that is already updated with any new PX entries.
- We recommend adding the script below default publisher list(s) to ensure that company names are listed as an addition to the main list.
- Generic domains are available as well.
General code snippet
The general buyer list script looks like this:
<!--Buyer list container-->
<div id="px-bli"></div>
<!-- Buyer
list inject -->
<script async src="https://cdn.listpard.com/bli/pxbli.min.js"></script>
<script>
window.bliInit=[]; function bli(){window.bliInit.push(arguments); return bli}
bli('vertical', 'vertical-name'); // vertical name (slug)
bli('placeholder', 'Loading...');
// other options should be added here
</script>
<!-- Buyer list inject end -->
Change the vertical name to display the list according to the vertical or follow our examples for different verticals.
Generic domain name
Use an alternative domain name if you like: cdn.listpard.com.
In this case, update the snippet accordingly:
<script async src="https://cdn.listpard.com/bli/pxbli.min.js"></script>
How to customize the script
The snippet supports the following customizations:
- container (optional) - the HTML element the list will be injected in;
- vertical (required) - the buyer vertical of the buyers
-
placeholder (optional) - sets the content to show while the list is loading.
Custom container
To insert the partners list into an HTML element other than <div id="px-bli"></div>
, specify the CSS selector of your HTML element using 'container' setting:
bli('container', 'css-selector')
Vertical
Set a vertical by editing your vertical name (slug) in the basic snippet to ensure that partner list works correctly:
bli('vertical', 'mortgage');
The slug is an URL-friendly variant of the vertical name.
Placeholder
Placeholder is the content displayed while the partner list is loading. It may contain text or simple HTML markup, so you can insert your spinner as well.
Simple text:
bli('placeholder', 'Loading...');
Markup:
bli('placeholder', '<i class="fas fa-spinner"></i>');
Multiple partner lists on one page
To load multiple buyer lists on one page, perform the following:
1. Extend the snippet with this declaration:
window.bliInstances = [];
2. Declare additional snippets with different names using number suffix: bliInit2, bli2.
3. Make sure the additional list has another container element on the page with a unique ID that we can set as a selector (px-bli2 in the example below).
4. Push this new setup to the window.bliInstances property by adding this line to the additional snippet:
window.bliInstances.push({'bli2':'bliInit2'});
Example
<!--Buyer list containers-->
<div id="px-bli"></div>
<div id="px-bli2"></div>
<div id="px-bli3"></div>
<!-- Buyer list inject -->
<script async src="https://cdn.px.com/bli/pxbli.min.js"></script>
<script>
window.bliInit=[];
window.bliInstances = [];
function bli(){window.bliInit.push(arguments); return bli}
bli('vertical', 'mortgage');
</script>
<script>
window.bliInit2=[];
window.bliInitLayer = 'bliInit2';
window.bliInstances.push({'bli2':'bliInit2'});
function bli2(){window.bliInit2.push(arguments); return bli}
bli2('container', '#px-bli2');
bli2('vertical', 'mortgage' );
</script>
<script>
window.bliInit3=[];
window.bliInitLayer = 'bliInit3';
window.bliInstances.push({'bli3':'bliInit3'});
function bli3(){window.bliInit3.push(arguments); return bli}
bli3('container', '#px-bli3');
bli3('vertical', 'insurance' );
</script>
<!-- Buyer list inject end -->
0 comments
Please sign in to leave a comment.