LIVEBUY Help Center

🤖 Widget Integration Tab

In the Integration tab, you’ll find two embed code options for custom widgets and dynamic widgets and additional the inject option for Dynamic Widgets only.


Embed Code Options

Embed code with reserved space

  • The widget reserves space before loading based on the height value in the <div> style

  • Recommended for static widgets that always contain content

  • To avoid layout shifts, ensure the height matches your widget’s style configuration

Embed code without reserved space

  • Removes the inline height style

  • The widget does not reserve space before loading

You may also adjust additional styles (e.g. margin or padding) directly in the <div> style attribute.


Inject Widget (Dynamic only)

The Integration tab differs from Custom Pages Widgets and offers the additional Inject option.

Automatically injects the widget into your product page using the LIVEBUY SDK and an already existing HTML element as an anchor—no manual code changes required.

Dashboard_Widgets_ProductPages_InjectIntegration_Xpath.gif
Dashboard - Widgets - Product Pages - Integration - Inject - Anchor Element Xpath

Anchor Element XPath

An existing HTML element in your page is identified using its XPath to be used as an anchor that tells the LIVEBUY SDK where to inject the widget. To find an existing HTML element’s XPath you can use your browser’s development tools as follows:

  1. Right-click an element on your page and select Inspect

  2. Highlight the correct element in DevTools

  3. Right-click → Copy → Copy XPath

  4. Paste the XPath into the Dashboard

If you need help identifying the XPath, contact your Key Account Manager.

Position Relative to Anchor

Choose where the widget should appear in relation to the anchor element:

  • Above

  • Below

  • Left

  • Right

  • Inside

Load on Devices

Control device visibility:

  • Mobile only

  • Desktop only

  • All devices

Example use case:
Carousel widget on desktop, inline widget on mobile—both injected at the same anchor.

Desktop

Carousel Widget

Dashboard_Widgets_ProductPages_InjectIntegration_Desktop.png

Mobile

Inline Player Widget

Dashboard_Widgets_ProductPages_InjectIntegration_MobileInline.png


Widget Inline CSS (Optional)

Apply custom inline styles directly to the widget container.

Example:

padding: 34px;
margin-top: 16px;
width: 80%;

Do not include style="..."—only the CSS properties.

Dashboard_Widgets_ProductPages_InjectIntegration_Settings.png
Dashboard - Widget - Product Pages - Integration - Inject - Settings