Zum Hauptinhalt springen
Partner program · Guide

Add the empty leg widget to your website

No coding needed. You create the widget in your partner dashboard, copy one line of code and paste it into your site. It takes about two minutes.

What the widget looks like

This is an example with sample data. On your site the widget shows real, current flights based on your filters, and every click carries your partner code.

What you need

  • An approved PrivJet partner account (free, sign up at privjet.net/partner).
  • Access to edit your website, meaning your login for WordPress, Wix, Squarespace or your site builder.

Three steps to your widget

  1. Create the widget in your dashboard

    Open privjet.net/partner, scroll to “Empty leg widget for your website” and click “Create widget”. Choose a departure (for example “Nice” or “Switzerland”, leave it empty for all flights), how many flights to show, the language and light or dark.

  2. Enter your website

    In the field “Your websites”, enter your site address, for example https://www.your-hotel.com. The widget only shows flights there. If your site has several addresses (with and without www), enter both. Then save.

  3. Copy and paste the code

    The embed code is shown below the widget. Click “Copy” and paste it into your page where the widget should appear. How to do that in your site builder is explained below.

What the code looks like

Your own code is in the dashboard, with your widget ID instead of w_xxxxxxxxxx. There are two versions: the first adjusts its height automatically and is the better choice. Use the second (iframe) only if your site builder does not allow scripts.

Recommended: script

<script src="https://www.privjet.net/partner-widget.js" async></script>
<privjet-legs widget="w_xxxxxxxxxx"></privjet-legs>

Alternative: iframe

<iframe src="https://www.privjet.net/embed/partner/w_xxxxxxxxxx" title="Empty Legs" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" style="width:100%;border:0;min-height:560px"></iframe>

Step by step in your site builder

Pick your system. Menu names may differ slightly between versions.

WordPress (block editor)

Code: script (recommended)
  1. Open the page or post for editing.
  2. Click the plus sign where you want the widget and search for “Custom HTML”.
  3. Paste the copied code into the block.
  4. Click “Update” or “Publish” at the top and view the page.

Elementor: drag the “HTML” element into the column and paste the code. Divi: “Code” module. Classic editor: switch to the “Text” tab and paste the code. WordPress.com sites need a Business plan for scripts, otherwise use the iframe version.

Wix

Code: script (recommended)
  1. In the Wix editor, click “Add” (plus) on the left, then “Embed & Social” and “Embed Code” or “Embed HTML”.
  2. Choose “Code”, paste the copied code and click “Update”. Drag the frame to about 600 pixels tall.
  3. Publish and open the published page. The first time it says “not enabled” with a detected address ending in .filesusr.com.
  4. Copy that address and add it under “Your websites” in the dashboard. After a minute the flights appear.

Wix loads embedded code through its own in-between address (…filesusr.com), not your domain. That is why Wix needs this one extra step. Inside the editor the notice may stay, on the published site it does not.

Squarespace

Code: script (recommended)
  1. Edit the page, click “Add block” where you want the widget and choose “Code”.
  2. Paste the copied code and leave “Display as HTML” switched on.
  3. Save and view the page.

Scripts in code blocks need the Core plan or higher (formerly Business). On the cheapest plan, paste the iframe version into the code block.

Webflow

Code: script (recommended)
  1. In the Designer, click “Add” on the left and drag a “Code Embed” element where you want it.
  2. Paste the copied code and click “Save & Close”.
  3. Publish the site. The Designer itself often shows embedded code only as a placeholder.

Custom code in Webflow requires a paid site plan.

Jimdo

Code: script (recommended)
  1. Edit the page and choose “Add element” where you want the widget.
  2. Pick the “Widget/HTML” element (Jimdo Creator) or “HTML code”.
  3. Paste the code and save.

Shopify

Code: script (recommended)
  1. Under “Online Store”, click “Customize” and open the page you want.
  2. Click “Add section” and choose “Custom Liquid”.
  3. Paste the code and save.

Your own HTML page

Code: script (recommended)
  1. Open the HTML file of the page.
  2. Paste the code inside <body> where the widget should appear.
  3. Save and upload the file.

If your site uses a Content Security Policy, allow script-src and frame-src for https://www.privjet.net.

If something does not work

The widget says “not enabled”.
Your site address is missing in the dashboard or written differently. Enter it exactly as it appears in the browser address bar, for example https://www.your-hotel.com (with www) and also https://your-hotel.com (without). After saving it takes up to a minute. If the notice shows a “detected address” (with Wix something like …filesusr.com), enter exactly that one.
The widget is cut off or has a lot of empty space.
Use the recommended script version, it adjusts its height by itself. With the iframe version you set the height by hand, about 600 pixels for six flights.
I see nothing at all.
Check in the dashboard that the widget is active and not paused. Some site builders only show embedded code on the published page, not in the editor.
There are no flights in it.
Your filters may be too narrow, for example a small airport plus destination plus aircraft class. Leave the destination empty or use a city or country as departure.

Widget FAQ

What does the widget cost?

Nothing. The widget is part of the free partner program. You earn on requests and bookings that come through the widget, exactly like through your partner link.

Do bookings through the widget count for my commission?

Yes. Every click in the widget carries your partner code. If the customer comes back later and books, it counts for you as long as the attribution of your link applies.

Does the widget set cookies?

No. The widget sets no cookies and has no tracking. Like any embedded content, your visitors’ browser loads it from privjet.net, which transmits their IP address. It is best to mention this in your privacy policy.

Does the widget slow down my site?

Hardly. It only loads when it scrolls into view and brings no large images.

Can I have several widgets?

Yes, up to five, for example one for flights from Geneva and one from Nice. Each has its own numbers in the dashboard.

Why does the widget only run on my listed domains?

So nobody can use your widget on other sites and data harvesters cannot pull the flights automatically. This also protects your numbers in the dashboard.

Not a partner yet?

Signing up is free. Once approved, you create your first widget.