Skip to main content
FairShare is Fluid’s attribution and commerce SDK. Add one script tag to use rep-attribution signals, a cart widget, lead capture, and media components without rebuilding your existing site.

Key Capabilities

Attribution Tracking

Supply share GUIDs, rep IDs, email addresses, usernames, or external identifiers and inspect the attribution that FairShare resolves for the session.

Cart Management

Add and remove products, adjust quantities, apply subscription plans, and send shoppers to checkout — all through a simple JavaScript API or declarative HTML attributes. A pre-built cart widget UI is included.

Lead Capture

Collect prospect information with a customizable form widget that slots into any page layout. Submit leads programmatically or let the widget handle the UI entirely.

Media

Embed product videos and media libraries as inline players or popover overlays. Fetch media metadata via JavaScript to build fully custom playback experiences.

Analytics

Fire custom events against the Fluid attribution pipeline, inspect the active attribution record, and retrieve session tokens for cross-system correlation.

How Attribution Works

When FairShare loads, it checks the configured attribution signals in priority order. The first signal that resolves wins. Read the active result with window.FairShareSDK.getAttribution(). The SDK reuses its stored attribution state as the visitor moves between pages on the same domain.
Browser storage does not cross domain boundaries. Configure an attribution signal independently on each domain that runs FairShare.

Framework Support

FairShare works with any website — static HTML, server-rendered pages, or JavaScript-heavy single-page apps. Because it loads as a plain <script> tag, you do not need a build system, a package manager, or a specific frontend framework.
You can install FairShare on any site where you control the page’s script tags, including landing pages and partner storefronts.

Next Steps

Installation

Add the script tag and configure attribution for your site.

Cart API

Explore the full JavaScript cart API and declarative HTML controls.

Components

Browse the cart, lead capture, and media web components.

Media

Listen for playback events and configure media calls to action.