Connect a yacht website
The website stays yours, with your design and your code. One line connects it to Listing Pulse: visits are counted with the visitor’s consent, the enquiry form reaches the broker, and the broker keeps texts, price and photos current without asking you.
1. Add one line to every page
In the <head> or just before </body>. Nothing else is needed: Listing Pulse recognises the website by its address, which the broker has entered.
<script src="https://listingpulse.site/connect.js" defer></script>
Once the page is online with this line, the website connects by itself and the broker gets an email.
2. Mark what the broker may change
Put data-lp="…" on any element. Listing Pulse replaces its content with what the broker publishes. Keep real text and photos in the HTML: they show until the published content arrives, and wherever the broker has left a field empty.
<h1 data-lp="name">SOLENNE</h1> <p data-lp="price">EUR 4,950,000</p> <span data-lp="status">For Sale</span> <img data-lp="hero" src="hero.jpg" alt=""> <div data-lp="story">Text shown until Listing Pulse fills it.</div> <ul data-lp="gallery"> <li><img src="photo.jpg" alt=""><span data-lp-caption></span></li> </ul> <ul data-lp="documents"> <li><a href="#"><span data-lp-title>Brochure</span></a></li> </ul>
Special places
data-lp="price"- The asking price, formatted with its currency, or “Price on Request”, “Sold” and so on.
data-lp="status"- The listing status: For Sale, Under Offer, Sold, Off Market or Price on Request.
data-lp="hero"- The hero photograph. Put it on an img, or on a box that shows a background image.
data-lp="gallery"- A list of photographs. Its first child is the pattern for every photograph: the img inside it gets the photo, an a inside it the link, an element with data-lp-caption the caption.
data-lp="documents"- A list of public documents. Its first child is the pattern: the a inside it gets the link, an element with data-lp-title the title.
data-lp="video"- The video link. On an a it sets the link, on an iframe or video the source.
data-lp-show="enquiries"- Hidden while the broker has switched enquiries off, for example after the sale. Put it on the form or its section.
Text
Paragraphs in long texts become separate p elements when the marked element is a block such as a div.
data-lp="name"- Yacht name
data-lp="introduction"- Short introduction
data-lp="builder"- Builder
data-lp="model"- Model
data-lp="year"- Year
data-lp="refit"- Refit year
data-lp="length"- Length (m)
data-lp="beam"- Beam (m)
data-lp="draft"- Draft (m)
data-lp="tonnage"- Gross tonnage
data-lp="guests"- Guests
data-lp="cabins"- Cabins
data-lp="crew"- Crew
data-lp="cruising"- Cruising speed (kn)
data-lp="maximum"- Maximum speed (kn)
data-lp="range"- Range (nm)
data-lp="hull"- Hull material
data-lp="location"- Location
data-lp="engines"- Engines
data-lp="power"- Power
data-lp="propulsion"- Propulsion
data-lp="storyTitle"- Introduction headline
data-lp="story"- Introduction
data-lp="whyTitle"- Why this yacht headline
data-lp="why"- Why this yacht
data-lp="designTitle"- Design headline
data-lp="design"- Design
data-lp="interiorTitle"- Interior headline
data-lp="interior"- Interior
data-lp="exteriorTitle"- Exterior headline
data-lp="exterior"- Exterior
data-lp="lifestyleTitle"- Lifestyle headline
data-lp="lifestyle"- Lifestyle
data-lp="performanceTitle"- Performance headline
data-lp="performance"- Performance
data-lp="accommodationTitle"- Accommodation headline
data-lp="accommodation"- Accommodation
data-lp="ownerTitle"- Owner’s area headline
data-lp="owner"- Owner’s area
data-lp="commentaryTitle"- Broker commentary headline
data-lp="commentary"- Broker commentary
data-lp="heritageTitle"- Heritage headline
data-lp="heritage"- Heritage
data-lp="contactTitle"- Contact introduction headline
data-lp="contact"- Contact introduction
3. Mark the enquiry form
Add data-lp-form to the form. Listing Pulse reads the fields by their name or type: name (or first and last name), email, phone, country and the message. An email address is required.
<form data-lp-form> <input name="name" autocomplete="name" required> <input name="email" type="email" required> <input name="phone" type="tel"> <textarea name="message"></textarea> <button type="submit">Send enquiry</button> <p data-lp-success hidden>Thank you, the broker will reply shortly.</p> <p data-lp-error hidden>Please try again.</p> </form>
- A form without its own action shows the thank-you text after sending. Elements with data-lp-success and data-lp-error carry your own wording.
- A form that already sends somewhere else keeps doing so. Listing Pulse receives a copy first.
- A form sent by your own script also works; Listing Pulse receives a copy alongside.
4. Consent
Visits are only counted after the visitor allows it. By default a small bar at the bottom asks once. Enquiries never need this consent.
The website already has a consent tool? Add data-consent="site" to the line and connect your tool:
<script src="https://listingpulse.site/connect.js" data-consent="site" defer></script>
document.addEventListener('listing-pulse:ready', function () {
// after the visitor agrees to statistics
ListingPulse.consent(true);
// when the visitor withdraws
ListingPulse.consent(false);
});5. Mark the broker parts for broker links
A broker link opens the whole website for other brokers and their clients, without the listing brokerage. Listing Pulse takes the broker parts out on the server before the page reaches the browser. Forms, the contacts and documents lists, phone, email and messenger links go by themselves. Mark the rest:
data-lp-broker- Taken out: the contact block, a viewing button, the brokerage logo, the consent bar and its scripts.
data-lp-neutral="See her in person"- Keeps its place and shows this text instead, for a heading or a menu entry that names the brokerage.
data-lp-neutral-show- A hidden element that appears only in the broker-free version, for example a line that replaces the form.
The first mark switches the broker link from the yacht brochure to the full website. Until then the link keeps showing the brochure.
Good to know
- Preview. The broker sees drafts on the real website inside Listing Pulse. Allow the page to be shown in a frame from https://listingpulse.site (no X-Frame-Options DENY; frame-ancestors including https://listingpulse.site).
- Content Security Policy. Allow https://listingpulse.site for script-src, connect-src and img-src.
- Languages. The language in
<html lang>decides which published translation is shown, where the broker has one. - Several yachts on one website. Each yacht gets its own page address, for example /yachts/solenne. The broker enters that address; the line stays the same.
- Interest signals.
data-pulse-section="view_pricing"on a section ordata-pulse-event="open_sales_dossier"on a button tells the broker what buyers looked at.