Google Analytics tracking
Set a GA4 Measurement ID on your account and ListBee injects gtag.js on every product page and thank-you page it hosts. No code changes required on your end.
When a buyer completes a purchase, ListBee fires a purchase event with transaction_id, value, and currency. UTM parameters flow through to GA4 campaign attribution.
GA4 tracking is opt-in. If ga_measurement_id is not set, no GA script is injected — zero impact on existing sellers.
Set your Measurement ID
PUT /v1/account accepts ga_measurement_id. The format must match G-XXXXXXXXXX (where X is alphanumeric). Pass null to clear it.
To remove tracking, pass null:
What gets injected
When ga_measurement_id is set, ListBee injects the standard gtag.js snippet on two pages:
- Product page — the checkout page buyers see when they click your listing URL
- Thank-you page — shown after successful payment
On the thank-you page, ListBee automatically fires a purchase event:
Nothing else is required. No script tags, no third-party plugins.
UTM parameters
Each listing has three optional UTM fields: utm_source, utm_medium, and utm_campaign. They control the campaign attribution passed to GA4 when a buyer lands on the product page.
Defaults (applied at render time if fields are null):
You only need to set UTM fields if you want to override the defaults. The fields are stored as null on the listing when using defaults — the actual values are applied when the page renders.
Create a listing with custom UTM fields
Create a listing using defaults
Omit the UTM fields entirely. ListBee uses listbee / product_page / <slug> at render time.