You can add the ListHub Property Details tracking script to your listing detail pages using the scripts below. Be sure to replace M-XXXX with your own ListHub ID.
LinkURealty Listing Details Page
The script must be placed in the listing details HTML under listing settings, so it will appear for all listings. See article for inserting custom HTML to listing details page.
(function(l,i,s,t,h,u,b){l['ListHubAnalyticsObject']=h;l[h]=l[h]||function(){
(l[h].q=l[h].q||[]).push(arguments)},l[h].d=1*new Date();u=i.createElement(s),
b=i.getElementsByTagName(s)[0];u.async=1;u.src=t;b.parentNode.insertBefore(u,b)
})(window,document,'script','//tracking.listhub.net/la.min.js','lh');
lh('init', {provider:'M-XXXX', test:false});
lh('submit', 'DETAIL_PAGE_VIEWED', {mlsn:'[MLSNUMBER]', zip:'[ZIPCODE]'});
IDX Broker Featured Property Details Page
The script must be placed in the Global Footer of the design integration, or if using Dynamic design, should be placed in the Global Footer in the Design Studio, or footer of the custom design website.
//used for IDX Broker Listing Hub Integration var listhub_detailurl = document.URL; if (listhub_detailurl.indexOf("/idx/details/listing/")>0) { var listhub_listingid = document.getElementById("IDX-moreinfoContactForm").elements["listingID"].value var listhub_zipcode = document.getElementById("IDX-moreinfoContactForm").elements["zipcode"].value (function(l,i,s,t,h,u,b){l['ListHubAnalyticsObject']=h;l[h]=l[h]||function(){ (l[h].q=l[h].q||[]).push(arguments)},l[h].d=1*new Date();u=i.createElement(s), b=i.getElementsByTagName(s)[0];u.async=1;u.src=t;b.parentNode.insertBefore(u,b) })(window,document,'script','//tracking.listhub.net/la.min.js','lh'); lh('init', {provider:'M-XXXX', test:false}); lh('submit', 'DETAIL_PAGE_VIEWED', {mlsn:listhub_listingid, zip:listhub_zipcode}); }