Visitor Analytics for Vendure
Self-hosted visitor journey, cart abandonment, product recommendations, search analytics — one plugin, one database, no third party.
Install on Vendure: add the package with npm, yarn or pnpm, then register VisitorAnalyticsPlugin in vendure-config.ts. All steps
npm
npm install @huloglobal/vendure-plugin-visitor-analytics yarn
yarn add @huloglobal/vendure-plugin-visitor-analytics pnpm
pnpm add @huloglobal/vendure-plugin-visitor-analytics Register it in vendure-config.ts
// vendure-config.ts
import { VisitorAnalyticsPlugin } from '@huloglobal/vendure-plugin-visitor-analytics' ;
export const config: VendureConfig = {
plugins: [
VisitorAnalyticsPlugin.init({
publicBaseUrl: 'https://shop.example.com' ,
licenceKey: process.env.HULO_LICENCE_KEY_VISITOR_ANALYTICS,
}),
// ... your other plugins
],
};What it does
Built for production from day one.
Self-hosted analytics that reaches all the way from a visitor's first pageview to a recovered abandoned cart. Journey drawer with parsed UA + MaxMind geo + heuristic intent labels; cart abandonment detection with signed recovery links and Slack notifications; co-view product recommendations (also-viewed, personal, trending); site-search analytics (top queries, zero-result gaps, search-to-cart conversion); rage-click and dead-click hot-spot lists. Privacy-first defaults: DNT respected, IPs anonymised, optional consent gate. Ships a drop-in storefront JS helper at /ees/hulo.js — one script tag and every event type is wired.
Cart abandonment
With a licence, the scanner detects sessions with cart_snapshot events but no checkout_completed in the abandonment window (default 30 min). Auto-promotes to converted when a matching checkout later lands. Signed recovery-link tokens (time-bounded, non-reusable) — /ees/abandoned-carts/:id/recovery-link returns a URL you drop into a recovery email. Slack notification for high-value drops. The Abandoned Carts page is in the plugin on every tier.
Product recommendations
With a licence, a denormalised ProductCoView table rebuilt every 6 hours from product_view events, bounded per session to 20 events so bot sessions can't skew the table. Three endpoints: also-viewed for a product-page rail, personal for a homepage/cart rail based on a returning visitor's last 10 product views, trending for a most-viewed-in-window rail.
Site search analytics
Zero-schema-cost queries over search events. Top queries by volume with average results count, zero-result queries (direct catalogue-gap intel), search-to-cart conversion rate.
Journey drawer buffs
Rage-click + dead-click hot-spot lists per URL. Per-session heuristic intent label (purchase / abandon / frustrate / consider / browse / bounce) — one glance per session in the visitor drawer.
Drop-in storefront helper
Ships /ees/hulo.js — one script tag and every event helper (cartSnapshot, productView, search, checkoutCompleted) is on window.hulo. Handles batching, sendBeacon, auto rage-click + dead-click detection.
Configurable conversion goals
With a licence, create page, form and payment goals (a page goal is a URL glob such as /checkout/thank-you/* and a value), and take a suggestion. A live matcher tags every pageview that hits the pattern; existing page goals keep counting, and completions per goal stay visible, on the free tier.
Full visitor journey
Page views, time-on-page, exit pages, configurable funnel, UTM attribution, bot detection. Per-visitor profile drawer with parsed UA + MaxMind GeoLite2 geo. Survives login — guest and signed-in events share the same visitor id.
Privacy-first defaults
DNT respected, IPs anonymised to /24 (IPv4) / /48 (IPv6), optional requireConsent gate. All three opt-outable per install.
Live-now view
With a licence, a real-time view of the visitors active right now and the pages they are on.
CSV export
With a licence, /ees/visitors/export.csv?days=N and /ees/abandoned-carts/export.csv for raw event / abandoned-cart data.
No daily cap, privacy built in
The free tier records every event, with no daily cap: dashboards, sources with bounce rate and conversions, landing and exit pages, the funnel, journeys, site search, rage and dead clicks, retention and visitor profiles. Cookieless mode, staff and IP exclusion, URL parameter stripping and personal-data export and erase are free too.
Admin dashboards
Angular admin pages for Abandoned Carts (KPIs, filters, recovery-link mint, CSV export) and Analytics Insights (trending, also-viewed lookup, search analytics, rage/dead-click hot spots).
MySQL, MariaDB & PostgreSQL
The plugin follows whatever database your Vendure dbConnectionOptions use — no configuration. Verified against PostgreSQL 17; MySQL/MariaDB installs are unchanged.
Buy & activate from the admin
The 14-day evaluation starts by itself, with no card. Subscribe or buy lifetime from the plugin's admin page — checkout opens in a new tab and the key installs itself within a minute, renewals included. The same card shows your plan, first-charge date and a Manage billing link to the Stripe portal (update card, cancel, switch plan). Already have a key? Paste it into the same banner. No .env edit, no redeploy; environment keys still take precedence for infrastructure-as-code setups.
Weekly report, set-up checklist & dashboard widget
With a licence (or during the first 14 days), every Monday the plugin emails whoever runs the store a short report of what it did that week — real numbers from your own database, week-over-week, with the next set-up step to take — and the plugin page opens with a set-up checklist that hides itself once everything is done. Change the recipient, send a test or switch the report off from the plugin's Settings tab (needs the host's SMTP_* settings). If the licence lapses, the report stops and the checklist is hidden; their settings are kept. The dashboard widget (Dashboard → Add widget) is free and shows the plugin's recent numbers.
One-click in-app updates
When a new version ships, an update banner shows current → latest with a What's-new link to the changelog. "Update now" installs the registry-verified release via your project's own package manager (yarn/npm/pnpm auto-detected) and gracefully restarts under pm2/systemd. Disable with HULO_SELF_UPDATE=off.
Install
Four steps, five minutes.
Add the package
Or run the one-line installer that does steps 1–3 for you:
Prefer to do it by hand?
npm
yarn
pnpm
Register it
In your vendure-config.ts:
Compile the admin UI
Add the extension to your compileUiExtensions call so the plugin's page appears in the admin:
Run the migration
The plugin registers its own entities. Generate and run the migration like any other:
That's it. Restart Vendure and the plugin's page is in the admin with every feature on for 14 days — no card, no key. To keep it all on afterwards, open the page and click Subscribe (first charge when the 14 days end) — the key installs itself, no .env edit, no redeploy.
Free tier vs licensed
Try the whole thing, keep the core for free.
Every new install has every feature on for its first 14 days, with no card and no key. After that the free tier keeps working indefinitely, and a licence keeps the licensed features on. If a licence lapses, the licensed features stop and nothing is deleted.
Free tier (after the 14 days)
- Every event recorded, with no daily cap
- Dashboards, sources, pages, funnel, journeys, site search, rage and dead clicks, retention
- Landing pages, bounce rate and conversions per source, operating systems
- Visitor profiles and the Settings tab
- Page goals you already have keep counting
- Cookieless mode, staff and IP exclusion, URL parameter stripping
- Privacy export and erase
- The Abandoned Carts page in the plugin
First 14 days + licensed
- Conversion goals: create them, form and payment goals, and suggestions (completions per goal stay visible on every tier)
- The live visitors view and the events CSV export
- The abandoned-cart scanner, verified e-mail capture, server-side cart capture and recovery reminder e-mails
- Product recommendations
- The weekly report and set-up checklist
HTTP endpoints
Every route exposed.
/ees/trackPublic: ingest a batch of events/ees/hulo.jsPublic: drop-in storefront helper JS/ees/recover-cart?t=…Public: resolve a recovery-link token → cart items/ees/recommendations/also-viewed?productId=…Public: co-view recommendations for one product/ees/recommendations/personal?visitorId=…Public: personalised recs from visitor history/ees/recommendations/trending?hours=…Public: most-viewed products in the window/ees/abandoned-cartsAdmin: paginated list with filters/ees/abandoned-carts/summaryAdmin: totals + recovery rate + lost value/ees/abandoned-carts/:idAdmin: detail incl. parsed items/ees/abandoned-carts/:id/recovery-linkAdmin: mint signed recovery URL/ees/abandoned-carts/:id/statusAdmin: mark recovered / dismissed/ees/abandoned-carts/export.csvAdmin: CSV export/ees/search-analytics/topAdmin: top search queries/ees/search-analytics/no-resultsAdmin: zero-result queries/ees/search-analytics/conversionAdmin: search→cart conversion/ees/journey/rage-clicksAdmin: rage-click hot spots/ees/journey/dead-clicksAdmin: dead-click hot spots/ees/journey/session-summary?visitorId=…Admin: per-session intent labels/ees/visitors/summaryAdmin: top-line counters + daily series/ees/visitors/sourcesAdmin: top sources by visits / sessions/ees/visitors/top-pagesAdmin: most-visited URLs/ees/visitors/funnelAdmin: configurable funnel with drop-offs/ees/visitors/exit-pagesAdmin: top exit pages/ees/visitors/liveAdmin: SSE live-now stream (licensed)/ees/visitors/journey/:visitorIdAdmin: per-visitor timeline/ees/visitors/export.csvAdmin: CSV export (licensed)/ees/goalsAdmin: create a conversion goal (licensed)/ees/goals/statsAdmin: per-goal completion stats/ees/licence/statusAdmin: licence + evaluation + update status/ees/licence/activateAdmin: activate a licence key from the admin UI/ees/update/runAdmin: one-click in-app update + graceful restart/ees/digest/settingsAdmin: weekly report recipient, last/next send/ees/digest/send-testAdmin: email this week's report to you now/ees/setupAdmin: set-up checklist (what is still to do)/ees/widgetAdmin: headline figures for the dashboard widgetFAQ
Common questions.
How do I get a licence key?
Buy one on the web with Stripe Checkout: monthly licence for Visitor Analytics, annual licence for Visitor Analytics (two months free) or lifetime licence for Visitor Analytics. You'll receive the JWT key by email. Paste it into the plugin's admin settings (Activate) — no redeploy — or set it as HULO_LICENCE_KEY_VISITOR_ANALYTICS in your .env if you prefer config-as-code; the env key wins when both are present.
Does it work without a key?
Yes. Every install runs with all premium features on for its first 14 days — no card, no licence key, nothing to configure — so you can judge it on your real traffic. After that it keeps working in the free tier. To keep them, click Subscribe on the plugin's admin page: the first charge is taken when the 14 days end (or 49 hours after checkout, if that is later), you can cancel any time before then, and the licence installs itself.
Which databases are supported?
MySQL, MariaDB and PostgreSQL (verified against PostgreSQL 17). The plugin follows your Vendure dbConnectionOptions automatically — there is nothing to configure.
How do updates work?
The plugin checks the npm registry daily. When a newer version exists, the admin dashboard shows an update banner with a What's-new link to the changelog and an "Update now" button that installs the registry-verified release via your own package manager and gracefully restarts under your process supervisor. Prefer manual control? Copy the install command instead, or set HULO_SELF_UPDATE=off.
Where is data stored?
In your Vendure database: the plugin keeps its data in its own tables there (added with a migration). Hulo Global never receives your customer data: the plugin sends our licence server only the licence check-ins and usage counts described under “Do the plugins call home?”. Abandoned-cart alerts go to Slack only if you set a Slack webhook.
Will it survive a Vendure upgrade?
It supports Vendure >=3.5.0 <4.0.0 (its peer dependency), and current releases are built and tested against Vendure 3.8.2 before they are published. A boot-time compatibility check emits a non-fatal warning if @vendure/core is outside that range, so upgrades to a future 3.x are safe to try. The 4.0 line will be tested and re-declared once its changelog lands.
Changelog
What's new.
Latest release: v0.21.0, 16 November 2026. Full changelog for Visitor Analytics for Vendure
v0.21.0NewLatest
Changed
- Abandoned-cart reminder e-mails restyled to the shared HULO e-mail design: a 600px white card with the merchant's logo (or shop name) and a 3px accent bar, the basket with line prices and total in an info box, a Return to your basket button, a "Kind regards" sign-off with the shop name and support address, and a footer strip with the merchant's legal text and the unsubscribe link. Inline styles and tables only; the plain-text part carries the same content. Lists at most eight items and says how many more.
- New optional design settings (Visitors → Settings → Carts): accent colour (default
#155dfc), logo URL, support e-mail and footer text, with install-wide defaults from the new plugin optionemail: { accentColor, logoUrl, logoWidth, supportEmail, footerText }. Existing installs keep their settings; the new fields start empty. - Preview the reminder e-mail (
GET /ees/settings/reminder-preview, ReadSettings): the e-mail rendered with the saved settings and a sample basket, served with a no-script Content-Security-Policy. - The unsubscribe page uses the same colours and type.
- Dependencies:
geolite2-redist^3.1.4,ua-parser-js^1.0.41; dev:typeorm^0.3.31,typescript^5.9.3,vitest^2.1.9,nodemailer^6.10.1. Majors held back:@maxmind/geoip2-node7,geolite2-redist4,ua-parser-js2,nodemailer10,typescript6/7,vitest5 (the harness pins 2.1.9),typeorm1.
Fixed
- The unsubscribe confirm button showed raw JSON. The page's form POST now gets an HTML "You have been unsubscribed" page; RFC 8058 one-click POSTs from mail providers still get JSON.
- Channel-scoped administrators could read and redirect the store-wide weekly report: change its recipient, send it to any address, preview it. Those routes now need an administrator of the default channel (or a SuperAdmin); the dashboard widget shows channel-scoped administrators no store-wide figures.
- The public recommendation endpoints had no rate limit (
also-viewed,personal,trending): 120 requests a minute per client IP across the three, then 429.visitorIdis capped at 64 characters. - A shop name containing
$&or$'was mangled in the reminder subject (string replacement patterns).
v0.20.0New
Parity with HULO Visitor Analytics for WordPress.
Changed (tiers)
- No daily cap on the free tier. Unlicensed installs used to stop recording after 100 events a UTC day; every event is now recorded.
GET /ees/licence/statuskeepscapReached(alwaysfalse). - The weekly report and the set-up checklist are licensed (licence or evaluation). On the free tier the scheduler sends nothing, Send me a test answers 402 and
GET /ees/setupreturns no items. Settings are kept; the report resumes when a licence is active. PREMIUM_FEATURESlists what a licence adds now (no event cap; adds reminders, cart capture, goal types, weekly report and checklist).
Added — free
- Cookieless mode (Visitors → Settings, off by default): no cookies or device storage; a daily-salted HMAC of address + browser + site identifies a visit, the salt is replaced (and the old one deleted) every UTC day. hulo.js stops using localStorage and sends no credentials in this mode.
- Exclude staff (on by default): signed-in administrators record nothing. Excluded addresses (IPs and CIDR ranges, v4 and v6).
?hulo_exclude=1excludes one browser in hulo.js. - Private URL parameter stripping (on by default): tokens, keys, passwords, e-mail addresses and mailing subscriber ids are removed from stored URLs and referrers; extra names configurable.
- Reports:
GET /ees/visitors/landing-pages(entry pages with sessions, bounce rate, conversions); sources now carrybounced,bounceRate,conversions,conversionRate(a conversion is a goal completion or acheckout_completedevent in the session);breakdownaddsoses. - Personal-data export and erase:
GET /ees/privacy/export,POST /ees/privacy/erase, and a Personal data card in Settings. - Admin UI tabs: Reports (sources, landing and exit pages, events, audience, site search, rage and dead clicks — reports that were REST-only), Goals, Abandoned carts and Settings.
Added — licensed
- Goal types: form goals (matched on
form_submitevents; hulo.js auto-tracks form submissions by form id / name, never field values) and payment goals (VendurePaymentStateTransitionEvent→ Settled, once per payment, worth what was paid when the goal has no fixed value). Per-goal completions UI.GET /ees/goals/suggestions. - Verified e-mail capture: carts record whether their address is verified (
emailVerified,emailSource). - Server-side cart capture from Vendure order events (off by default).
- Abandoned-cart reminder e-mails (off by default): verified addresses only, opt-outs honoured, at most two per cart (compare-and-set), one sequence per address per week, per-run cap, unsubscribe link and one-click List-Unsubscribe headers.
Fixed
- hulo.js sends
metaJSON-encoded; it was stored encoded twice, so the abandonment scanner never saw hulo.js cart snapshots or checkouts. String meta is now parsed and stored once. - Traffic sources are grouped by page views (an event without UTM no longer opens a
(direct)row for a session that came from a campaign). - Goal create/update/delete check the admin's channel.
Docs
- README: tiers table (no "403 on free"; licensed endpoints answer 402), Settings, goal types, cart reminders; the Settings tab now exists.
Upgrade notes
- Columns added on boot (and by TypeORM synchronise):
conversion_goal.type(defaultpage) andtarget;abandoned_cart.emailVerified,emailSource,emailsSent,lastEmailAt. New tablesva_goal_payment,va_order_cart. Settings live inhulo_plugin_prefs. No existing data changes.
v0.19.6NewSecurity
- Security Admin REST routes refuse a Shop-API session on Vendure 3.8+. Vendure 3.8 binds every session to the API it was created on and refuses Shop-API sessions on the Admin API (GHSA-5fpx-9m35-w745), but it does not check REST routes added by plugins: an administrator's storefront session still carried their admin permissions into the Visitor Analytics admin REST routes (visitors, exports, abandoned carts, journey, search analytics, recommendations). Those routes now also require a session created on the Admin API (
isAdminApiSessionfrom the licence SDK 0.15.6, the same rule as Vendure's own AuthGuard). The admin UI is unaffected; administrators logged in before the 3.8 upgrade log in again once, as Vendure already requires. No change on Vendure 3.5 to 3.7.
Compatibility
- Tested with Vendure 3.8.2 (NestJS 12,
@nestjs/graphql14, Apollo Server 5), as well as 3.5 to 3.7. The peer range stays@vendure/core >=3.5.0 <4.0.0; nothing here needs 3.8. - Requires
@huloglobal/vendure-licence-sdk^0.15.6.
v0.19.5New
Package metadata
- The
licensefield is nowAGPL-3.0-only, matchingLICENSE, which grants the GNU Affero General Public License version 3 (it saidAGPL-3.0-or-later). Published npm builds remain under the separate commercial licence described inLICENSE. No code changes.
v0.19.4NewSecurity
- Security CSV exports are no longer kept by CDNs.
GET /ees/visitors/export.csvandGET /ees/abandoned-carts/export.csvnow sendCache-Control: private, no-store. They used to send no caching header, so a CDN that caches by file extension (Cloudflare caches.csvby default, even for a signed-in request) could store one admin's export, with visitor journeys or shoppers' e-mail addresses, and serve it to anyone who asked for the same URL. The refusals the handlers send themselves carry the header too: signed out, missing permission or no licence on the visitor export, and a channel the admin cannot read on the cart export. The cart export's 403 for a caller who is signed out or lacksReadCustomerhas noCache-Control, because Vendure's permission check sends it before the handler runs; it carries no data. If your admin API is behind a CDN, purge any/ees/CSV files it may already hold.
Fixed
- PostgreSQL. The plugin now requires licence SDK
^0.15.4. With 0.15.3 or older on Postgres, removing an abandoned-cart opt-out always reported success, even when there was no such opt-out. The abandonment scan also logged 2 converted carts whatever it marked, and the first weekly report was skipped (it started a week late). MySQL and MariaDB were not affected. - PostgreSQL: a licence key activated in the admin is now stored. The plugin's licence store left out the conflict column that the Postgres upsert needs, so saving a key failed. Pasting a key into the admin applied it, answered with a server error and did not store it, so the plugin was unlicensed again after a restart. A key bought from the admin, which installs itself, was not stored either. The co-view sweep stores the end of its last window in the same table, and that save failed too, so
GET /ees/recommendations/aggregate-nowcounted again the co-views that the 6-hourly sweep had already counted. MySQL and MariaDB were not affected.
Package metadata
homepageis now the product page, https://huloglobal.com/vendure-plugins/visitor-analytics/, instead of the GitHub repository.- A shorter
descriptionthat npm shows in full (npm cuts descriptions at 255 characters), and keywords for the abandoned-cart, UTM and recommendation features. - The npm package no longer includes the plugin's compiled unit tests.
v0.19.3New
Documentation
- The README now shows the plugin logo, hosted on huloglobal.com so it displays on npm and GitHub alike, linking to the product page. No code changes.
v0.19.2NewSecurity
- Security Admin reads are scoped per channel. Every admin endpoint (REST
/ees/visitors/*,/ees/goals*reads,/ees/journey/*,/ees/search-analytics/*,/ees/abandoned-cartslist / summary / export / detail / recovery-link / status, and thehuloVisitor*Admin API queries) used to take the channel from the query string, or read every channel when none was given. An administrator whose roles cover only channel B could therefore read channel A's visitors, IPs, journeys and abandoned carts (e-mail, name, phone) and mint recovery links for them. Now a user with the permission on the default channel (or SuperAdmin) still sees every channel as before; anyone else is limited to the channels their roles grant it on, gets their active channel when they name none, and gets 403 /FORBIDDENfor any other channel. - Security
x-forwarded-foris read from the right. WithtrustedIpHeaders: ['x-forwarded-for']the visitor IP (stored IP, rate-limit key) was the left-most entry, which is whatever the client sent. It is now the right-most entry, the hop the host's proxy appended. - Security Edge geo headers need a trusted edge.
CF-IPCountry,X-Akamai-Edgescape,X-Country-Codeandcf-region-codewere believed from any client, so a visitor could choose its stored country. They are now used only when the immediate peer is a proxy Vendure trusts (apiOptions.trustProxy) ortrustedIpHeadersis configured; otherwise the GeoLite2 lookup runs.
Fixed
- The public
recover-cart,recover-cart/resume,recover-cart/convertedand opt-out endpoints keyed their rate limit onreq.ipwhile ingest usedtrustedIpHeaders; on a host that relies ontrustedIpHeadersevery visitor behind the proxy shared one budget (30 restores a minute for the whole shop). They now use the same client IP as ingest. - README: the
emailon abandoned-cart rows is unverified beacon input — hosts must not send reminders to it as-is.
v0.19.1
Changed
- Every install now gets a 14-day evaluation with all features on and no card (granted by the HULO licence server). The licence banner's buttons read Subscribe: during the evaluation the first charge falls on the day it ends, so there is no second free trial.
v0.19.0
Retention pass: a weekly report, a setup checklist, a dashboard widget and a licence banner that says what the plugin has done. No schema changes to the plugin's own tables; one shared hulo_plugin_prefs table (created on first boot by the licence SDK) holds the report settings.
Added
- Weekly report. Every Monday at 08:00 server-local time the worker emails the previous week's unique visitors, sessions, page views, abandoned carts detected, carts recovered and their value, and conversion goals completed — each against the week before — plus next steps from the setup checklist and the licence notice when a trial or key is ending. Weekly report card on the admin page (enabled toggle, recipient with the resolved default as placeholder, last/next send, Send me a test, Preview);
GET|POST /ees/digest/settings,POST /ees/digest/send-test,GET /ees/digest/preview. Sent through the host'sSMTP_*environment vianodemailer, now an optional peer dependency. Default recipient: the licence holder, else the trial lead. - Setup checklist at the top of the admin page (
GET /ees/setup): tracking events arriving in the last 7 days, public base URL, storefront URL for recovery links, a conversion goal, Slack alerts or recovery links. Hidden once complete or dismissed; shown again if a ticked item regresses. The undone items are the report's "next steps". - Dashboard widget (Dashboard → Add widget → Visitor Analytics): unique visitors, page views and carts recovered for the last 7 days, the licence notice, and a link to the page (
GET /ees/widget). - Admin navigation: Marketing → Visitor Analytics (shared UI module
VisitorsNavModule, included inuiExtensions). - Licence banner: lifecycle notice (trial ending, key expiring, evaluation ended) as an amber strip; the premium feature list and a "So far: …" line of real 30-day figures on the trial and free banners; Email me before it ends on the trial banner (
POST /ees/eval/remind-me, which was missing); "Renews automatically — current key valid until …" on subscriptions. - Value metrics: Recovered revenue and Carts recovered / abandoned tiles on the KPI row from
GET /ees/abandoned-carts/summary. - Free-tier cap:
GET /ees/licence/statusreportscapReached(today's 100-event budget spent) and the page shows an amber notice; the Live now tile shows an unlock chip on the free tier instead of a silent "reconnecting". - Usage counters (
visitorsTracked,sessions,pageViews,cartsAbandoned,cartsRecovered,recoveredValuePence,goalsCompleted, last 30 days, numbers only) now travel with both the evaluation ping and the daily heartbeat, so licensed installs keep reporting after purchase. - Any 402 / licence-coded error on the page renders "<what you tried> needs a licence — start the free trial or activate a key at the top of this page".
Changed
@huloglobal/vendure-licence-sdk^0.15.1.
Fixed
- The daily heartbeat reported
jti: unlicensedforever once a key was activated from the admin page or installed by the buy-from-admin claim, so the licence server dropped those installs' usage figures. It now reads the key currently in force on every ping.
v0.18.5
Fixed
- MySQL/MariaDB regression in 0.18.4. The
HAVINGrewrite madetrending,topQueriesandzeroResultQueriesfail on MySQL/MariaDB ("Unknown column 'meta' in 'HAVING'": MySQL resolves only the output alias there, Postgres only the expression). The filters now sit inWHEREas the expression, which both accept. 0.18.4 is deprecated on npm. - The corpus test now also runs every statement through a server-side
PREPAREon MySQL/MariaDB (HULO_MYSQL_URL), so a fix for one dialect can no longer break the other unnoticed.
v0.18.4
Optimisation and Postgres pass — no new features, no new tables, no new indexes (nothing to migrate).
Fixed
- Postgres. Every camelCase column on the entity tables (
visitor_event,conversion_goal,abandoned_cart,product_co_view) and on the Vendure tables the plugin reads (customer,order,order_channels_channel,product,product_variant,product_translation,product_variant_translation) is quoted;NOW() - INTERVAL …becameDATE_SUB(…); aliases are no longer used inHAVING; the personal-recommendations seed query no longer combinesDISTINCTwith anORDER BYon an unselected column; theCAST(… AS UNSIGNED)on product ids / result counts is guarded by a digits check (Postgres raises where MySQL returns 0); the co-view upsert quotes itsON CONFLICTtarget;SUM(boolean)in the session summary becameMAX(CASE …); boolean columns are compared withTRUE/FALSE; the abandoned-cart controller's queries go through the dialect adapter; and the boot-timeabandoned_cartALTERs quote the column name (an install without the migration got a lowercase duplicate) behind an information-schema check (MySQL 8 has noADD COLUMN IF NOT EXISTS). A corpus test (tests/pg-corpus.test.ts, skipped unlessHULO_PG_URLis set) runs all 98 statements against PostgreSQL 17 with TypeORM-quoted stand-ins for the entity and Vendure tables. POST /ees/trackandcustomerId. The customer is resolved from the Vendure session (activeUserId→customer.userId, cached 10 min); the body value is ignored, so an anonymous beacon can no longer file events under an arbitrary customer id. A storefront that never sent the session (the bundled tracker does not) sees no change: those events were already unlinked.- CORS.
OPTIONS /ees/trackanswers204with the same headers as the POST (a JSONfetchfrom another origin sends a preflight). A disallowed origin gets noAccess-Control-Allow-Originheader at all — the previousnullis itself a valid origin value.
Changed
- Co-view aggregation. Pairs are accumulated in memory per (A, B, channel) and written as multi-row upserts in chunks of 500 (one statement per ordered pair before: a 20-product session cost 380 round trips). The end of the last aggregated window is persisted, so overlapping runs —
aggregate-nowafter the 6-hourly sweep — count nothing twice;aggregate-now?force=1rebuilds regardless. - Live feed. One query in flight per stream (a slow tick used to queue behind itself every 5 s) and a
: keepalivecomment every 15 s. - CSV exports. Visitors and abandoned carts stream in id-ordered chunks of 5 000 with back-pressure instead of materialising up to 200 000 / 50 000 rows first. Rows are in id (chronological) order.
- Housekeeping. Monthly, on the worker:
abandoned_cartrows in status expired / converted / dismissed older than 180 days andproduct_co_viewpairs not refreshed in 90 days are deleted in batches of 5 000.
v0.18.3
Changed
normaliseUrlandboundedMetamoved tosrc/ingest-utils.ts(decorator-free, unit-tested). No behaviour change.
v0.18.2Security
Reliability and security pass — no new features. Two indexes on visitor_event (createdAt, (channelId, createdAt)) are declared (run your migrations).
- Security Permissions. Self-update requires SuperAdmin; licence, purchase, portal and goal changes require UpdateSettings (everything was reachable with ReadCustomer).
- Security The rate limiter keys on the same resolved address as everything else; proxy headers are only honoured when listed in
trustedIpHeaders. - Security CSV exports quote cells that would run as spreadsheet formulas; the journey endpoint returns only the fields the drawer shows.
- Security The IP hash salt falls back to
signingSecretbefore the public constant.
Fixed
- Storefront identity across origins.
hulo.jsnow keeps a first-party visitor id (localStorage) and a 30-minute session id and sends them with every batch; on a storefront hosted on a different origin than the API the cookies never travelled, so uniques equalled page views. - URLs.
hulo.jssendslocation.href; events are now stored as path + query, so funnels, conversion goals and source reports match again. - The GraphQL visitor summary aggregates bounce rate and duration in SQL instead of loading every session row;
SUM(boolean)replaced withSUM(CASE …)everywhere (Postgres). - A cookie containing a bare
%no longer turns every beacon into a 500; UTM fields are capped to their column widths (a longutm_sourceused to drop the whole batch); oversizedmeta(large cart snapshots) is shrunk item-wise instead of cut mid-JSON, so abandoned carts are still detected. - Public
trendingis capped at 7 days and memoised for a minute; goal stats count completions correctly (COUNT(v.id)); goal ids and query clamps are validated. - Abandoned-cart scanner: landing/last URL and referrer are the real first and last (the previous expression always returned an empty string), a scan cannot overlap the previous one, the Slack post times out after 8 s, and the opt-out GET shows a confirm button while the POST performs it (mail clients prefetch GETs).
- Admin UI: the update banner is no longer shown twice, the copy button copies a real
@, the restart poll is cancelled on destroy.
Changed
retentiondefaults to{ days: 400 }(falsekeeps everything) and the sweeper runs on the worker only.- Events are inserted with
insert()(no reload round trip).
v0.18.1
_Same content as 0.18.0, whose publish was left staged on the npm registry and never promoted; 0.18.1 is the first installable release of this line._
v0.18.0
Added
- Recovery links can resume an order.
issueRecoveryLink(cartId, { resumeOrderCode })(andPOST /ees/abandoned-carts/:id/recovery-linkwith the same body) binds the link to the visitor's open Vendure order.GET /ees/recover-cartnow returnsorderCode,orderStateandresumable, and the new publicPOST /ees/recover-cart/resume?t=…addsresumeOrderCode— set only while that order is stillAddingItems/ArrangingPayment. Storefronts keep re-addingitemsas the universal fallback. - Attribution. New
abandoned_cartcolumnsrecoveryStep(link_issued→link_opened→resumed→converted, monotonic),convertedAt,convertedOrderId,convertedOrderCodeandresumeOrderCode. The storefront reports a recovered checkout with the token-bound publicPOST /ees/recover-cart/converted { t, orderCode }; the scanner's owncheckout_completedmatch setsconvertedAttoo.GET /ees/abandoned-carts/summarygains anattributionblock (link issued / opened / resumed / converted counts, value recovered via link, opt-outs) and the list endpoint returns the new columns. - Email opt-out. New
abandoned_cart_opt_outtable.GET|POST /ees/abandoned-carts/opt-out?e=<token>(public; POST is the RFC 8058 one-click form) records an opt-out for the address in the HMAC token. Service API:isOptedOut(email)(fails closed),optOut,optIn,listOptOuts,buildOptOutLink(email)andbuildListUnsubscribeHeaders(email)for theList-Unsubscribe/List-Unsubscribe-Postheaders. Admin:GET /ees/abandoned-carts/opt-outs,POST /ees/abandoned-carts/opt-outs/remove { email }; the detail endpoint reportsoptedOut. New optionabandonment.optOutSecret(defaults torecoveryLinkSecret, thensigningSecret). - Storefront helper.
hulo.resumeCart(token)andhulo.recoveryConverted(orderCode)— the helper remembers the token fromrestoreCart/resumeCartinsessionStorage, so the thank-you page needs one call. - Pure helpers exported for hosts:
isResumableOrderState,advanceRecoveryStep,normaliseEmail,hashEmail,buildOptOutToken,verifyOptOutToken,buildOptOutUrl,buildListUnsubscribeHeaders.
Changed
- The public recovery endpoints are rate-limited per client IP (
recover-cartandresume30/min,convertedandopt-out10/min) and answer withCache-Control: no-store. - The new columns and the opt-out table are created at boot with
ADD COLUMN IF NOT EXISTS/CREATE TABLE IF NOT EXISTS(MariaDB and PostgreSQL), so installs that do not run TypeORM migrations for plugins need no manual step. Installs that do can generate a migration as usual — the entity declares the same columns.
v0.17.2
Added
- Per-channel recovery links.
abandonment.storefrontBaseUrls(channel code → storefront origin) makes a cart abandoned on a second storefront link back to that storefront; unlisted channels usestorefrontBaseUrlas before.
Fixed
- README: the storefront restore route must show the basket the way the storefront does (drawer or page) rather than assume a
/cartroute, and must treat anErrorResultfromaddItemToOrderas a failed line. The reference storefront implementation now does both.
v0.17.1
Changed
- Branding. The bundled
hulo-global-logo.svgis now the HG wordmark on the HULO black rounded square (the same mark as the huloglobal.com header), with explicit-lightand-darkvariants alongside the auto-switching default.
v0.17.0
Added
- Licence & billing card in the admin. Always visible: the current state (free tier, free trial with first-charge date, monthly/annual subscription, lifetime, or master licence) with the actions that apply — start the 14-day free trial or subscribe, buy lifetime, Manage billing (Stripe customer portal: update card, cancel, switch plan) and Upgrade to lifetime (the old subscription stops billing at the end of its paid period). Requires licence SDK ^0.14.0.
v0.16.1
Changed
- The 14-day free trial is now card-backed. Unlicensed installs run in the free tier; start the trial from the admin banner (monthly or annual → Start 14-day free trial) — Stripe collects a card, nothing is charged until day 15, cancel any time before then, one trial per customer — and the licence installs itself within a minute. The automatic no-card evaluation window is retired (licence SDK ^0.13.0).
v0.16.0
Added
- Buy licence from the admin. The evaluation / free-tier banner now has a plan picker and a Buy licence button: checkout opens in a new tab and, once payment completes, the licence installs itself — no email round-trip, no
.envedit, no restart. Renewed subscription keys are picked up automatically too. New admin endpointslicence/purchase-linkandlicence/claim-status.
Changed
- Requires
@huloglobal/vendure-licence-sdk^0.12.0. - The 7-day card trial at checkout has been retired: every install already gets the 14-day no-card evaluation, and paid plans now bill from day one.
v0.15.3
Changed
- README. Licensing paragraph now describes the 14-day fully-featured evaluation (the plugin already behaved this way); pricing unchanged at £9.95/month or £199 lifetime.
v0.15.2
Changed
- Licence SDK ^0.11.0. Master licences (one key that activates every HULO plugin) and hardware-bound keys are now accepted by the runtime licence check.
- Branding. Refreshed HULO Global logo (inline HG monogram) in the admin UI.
v0.15.1
Fixed
- Premium background jobs now respect the tier. The abandoned-cart sweep (with its Slack notifications) and the recommendations co-view aggregation kept running after the evaluation ended; both now check premium access on every tick — and re-enable instantly when a licence is activated, no restart needed. Admin endpoints were already gated.
v0.15.0
Added
- PostgreSQL support. All of the plugin's SQL now runs on Postgres as well as MySQL/MariaDB — the licence SDK's new dialect adapter translates queries transparently at runtime, so no configuration is needed: the plugin follows whatever database your Vendure
dbConnectionOptionsuse. Verified against PostgreSQL 17. MySQL/MariaDB installs are unaffected (byte-identical passthrough).
v0.14.1
Changed
- The update banner's "What's new" link now opens the plugin's changelog page on huloglobal.com, so you can read exactly what a release contains before updating.
v0.14.0
Added
- One-click in-app updates. The update banner now has an "Update now" button: the plugin installs the new version via your project's own package manager (yarn/npm/pnpm auto-detected), verifies it landed, and gracefully restarts under your process supervisor (pm2/systemd). Admin-only; the target version is verified against the npm registry; a failed install never restarts anything. Disable with HULO_SELF_UPDATE=off; force restart without a detected supervisor with HULO_SELF_UPDATE=force. Note: a separate worker process picks the update up on its next restart, and the admin UI itself refreshes after your next admin build.
v0.13.1
Added
- Update notifications in the admin UI. When a newer version is on npm, a dismissible banner shows current → latest with a copy-ready install command and a link to what's new. (Update data comes from the existing daily registry check — no new network calls.)
v0.13.0
Added
- In-admin licence activation. A banner on the admin page shows the evaluation countdown (or free-tier state) with a paste-your-key box: the key is verified with the exact boot-time checks and activates instantly — no .env edit, no redeploy. Persisted in the shared hulo_licence_store table and restored on boot; env/init keys always take precedence. New licence/status, licence/activate and licence/deactivate admin endpoints.
v0.12.0
Added
- 14-day full-featured evaluation. Unlicensed installs now get the complete feature set for 14 days instead of the restricted free tier. Premium analytics features now also run during the evaluation window. The clock is anchored server-side (a hashed instance id — no personal data), so reinstalling does not restart it, and it fails open: if the licence server is unreachable the plugin keeps running fully. After the window the plugin drops to the free tier; all configuration is kept and reactivates instantly with a key.
v0.11.1
Fixed
anonymizeIpproduced a malformed address (e.g.fe80::1::) for already-abbreviated IPv6 inputs. Abbreviated addresses are now left unchanged; full-form IPv6 still truncates to the first three hextets.
Added
- Unit test suites: URL glob matcher, bot detection + IP anonymisation, proxy-header extraction.
v0.8.4
Added
GET /ees/abandoned-cartsnow includes each cart's parseditemsarray plus a short server-rendereditemsPreviewstring ("Windows 10 Pro, Office 2021 Pro +2 more"), sorted by quantity descending. Admin can see WHAT was abandoned without clicking through to the detail endpoint.GET /ees/abandoned-carts/:idfills in missingname(andproductIdwhen it can) on every item by looking upproduct_variant_translation/product_translation. Only fills where the storefront snapshot didn't already capture a name — a stored name at cart time is more accurate than a live catalog lookup (products can be renamed after abandonment).
Changed
- List endpoint drops the raw
itemsJsonstring from its response — clients that need the JSON blob can hit the detail endpoint. Response payload stays lean.
v0.8.3
Added
- Recommendation endpoints (
trending,also-viewed,personal) now enrich every row withproductNameandproductSlugvia a single bulk lookup againstproduct_translation. English translation preferred for multi-locale stores; single-locale installs land on their only translation. Soft-deleted products are excluded. - New exported type:
RecommendedProduct.
Changed
- Response row shape is now
{ productId, productName, productSlug, score, views }— the addition is backwards-compatible for consumers that only readproductId, but callers that render the row can now show the name without a second round-trip. Admin UI updated in the parallelee.softwarecommit to render "Windows Server 2022 Datacenter #42" instead of just "#42".
v0.8.2
Documentation
- README rewritten to cover every 0.8.x feature: the drop-in
/ees/hulo.jsstorefront helper, cart-abandonment configuration and lifecycle, recommendation endpoints, search analytics, journey drawer buffs. Includes a walkthrough of the storefront-side/cart/restoreroute customers implement to consume recovery links. - Endpoints table split into Public (browser-safe, CORS-permissive) vs Admin, with every 0.8.0-introduced endpoint marked inline.
- No runtime changes — bumped to ship the new README with the npm tarball.
v0.8.1
Added
/ees/hulo.js— the plugin now serves a drop-in typed storefront helper at this path. One<script src>tag and every event API (hulo.cartSnapshot,hulo.productView,hulo.search,hulo.checkoutCompleted,hulo.restoreCart) is available onwindow.hulo. Handles batching,sendBeaconon unload, and installs auto rage-click + dead-click detectors. Served with a 10-minute browser TTL + 24-hour stale-while-revalidate and permissive CORS so it works cross-origin from any storefront.
v0.8.0
Added
Cart abandonment — end-to-end
- New
AbandonedCartentity, keyed on session id. One row per abandoned session, refreshed in place until it either converts (order placed) or expires (recovery window elapses). AbandonedCartService.scan()— periodic sweep finds sessions withcart_snapshotevents but nocheckout_completedin the abandonment window (default 30 min). Auto-promotes previously abandoned rows toconvertedwhen the customer later checks out.- Ships with a boot-time timer (worker-only, 5-minute cadence). Idempotent — safe to horizontally scale, only the worker runs it.
- Signed recovery links —
POST /ees/abandoned-carts/:id/recovery-linkreturns a time-bounded opaque token the storefront exchanges viaGET /ees/recover-cart?t=…to rebuild the exact cart. Storefront never sees the underlying items until the token is presented. - Slack notification for high-value abandonments — configurable threshold and webhook via the
abandonmentplugin option. - Admin API:
GET /ees/abandoned-carts— paginated list with status, value and email filters.GET /ees/abandoned-carts/summary— totals, recovery rate, recovered vs. lost value in the window.GET /ees/abandoned-carts/:id— detail incl. parsed items.POST /ees/abandoned-carts/:id/status— mark recovered / dismissed / re-open.GET /ees/abandoned-carts/export.csv— CSV export.
Co-view product recommendations
- New
ProductCoViewaggregate table. Scanner walks recentproduct_viewevents per session, extracts every ordered pair, and increments a per-triple counter. Bounded to 20 events per session so runaway bot sessions can't skew the table. - Denormalised — both
(A, B)and(B, A)stored — so read-side lookups are one indexed scan. - Runs every 6 hours on the worker; also exposed as
GET /ees/recommendations/aggregate-nowfor admins to kick a fresh run after a data backfill. - Public read endpoints (safe from the storefront):
GET /ees/recommendations/also-viewed?productId=…— the "customers who viewed X also viewed…" rail on a product page.GET /ees/recommendations/personal?visitorId=…— personalised recs for a returning visitor, from their last 10 product views over 30 days. Excludes seeds.GET /ees/recommendations/trending?hours=24— most-viewed products in the window. Reflects real interest, not search- console clicks.
Site search analytics
- Reads back over
visitor_eventwhere the storefront has firedhulo.search(query, resultsCount). Zero new schema. GET /ees/search-analytics/top— top queries by volume with average results count.GET /ees/search-analytics/no-results— top zero-result queries. Direct catalogue-gap intel.GET /ees/search-analytics/conversion— of sessions that searched, what fraction went on to fireadd_to_cart.
Journey drawer buffs
- Rage-click + dead-click aggregation, keyed on URL. Store-wide hot-spot lists for pages where visitors are stuck or frustrated.
- Per-visitor session summary with a heuristic
intentlabel (purchase/abandon/frustrate/consider/browse/bounce) computed from event history — one glance per session in the Journey drawer instead of scrolling event rows.
Storefront helper events (documented in the README)
hulo.cartSnapshot({ currency, totalMinor, itemCount, items, email })hulo.productView(productId, productVariantId?)hulo.search(query, resultsCount)hulo.rageClick(url, selector?)/hulo.deadClick(url, selector)hulo.checkoutCompleted()- All flow into the existing
POST /ees/trackendpoint with a standard shape, so admins can also fire them from any language.
Changed
checkout_completedis now a first-class recognised event type — the abandonment scanner uses it to auto-close matched rows.
v0.7.0
Added
- Boot-time compatibility check via the new SDK helper
warnIfIncompatibleVendure(). Logs a non-fatal warning when the runtime@vendure/coreversion is outside the tested range. Silent when inside; fail-open on unparseable versions.
Changed
- Peer dep on
@vendure/coretightened to>=3.5.0 <4.0.0— Vendure 3.5, 3.6 and 3.7 are all covered. Anything under 3.5 has never been tested; anything from 4.0 upwards is deferred until the changelog is reviewed. - Uses
@huloglobal/vendure-licence-sdk@^0.6.0.
v0.6.0
Added
- Vendure Admin API GraphQL extensions. Operator endpoints are now first-class GraphQL queries alongside the existing REST admin endpoints:
huloVisitorSummary,huloVisitorSources,huloVisitorTopPages,huloVisitorFunnel,huloVisitorJourney. - Storefront path (
POST /ees/track) stays REST — it's anonymous, high-frequency, and can ingest millions of events a day; the resolver stack would add pointless overhead per event.
v0.5.0
Added
- Tier-gating on every premium feature via the SDK's
isLicensed()helper. Unlicensed installs get:- a hard 100 events / UTC day cap on
POST /ees/track(returns{skipped: 'free-tier-cap'}after that); - live SSE feed 402;
- conversion-goal creation 402;
- CSV export 402.
- a hard 100 events / UTC day cap on
- Anti-tamper heartbeat via the SDK.
Changed
- Relicensed the GitHub source to AGPL-3.0. Published npm builds remain under the commercial licence documented at <https://huloglobal.com/legal/terms/>.
- npm builds now include Sigstore provenance attestations.
v0.4.3
Fixed
- Dropped the conflicting
display: blockon mobile tables that broke the row / cell alignment.
v0.4.2
Changed
- 44px minimum tap targets on every interactive element in the admin UI.
v0.4.1
Changed
- Comprehensive README refresh — documents the full v0.4 feature set with the storefront snippet, every privacy + security option, and the conversion-goals API.
v0.4.0
Added
- Signed visitor + session cookies via the licence-sdk
signValue/verifySignedValuehelpers — tampered cookies are rejected. Securecookie flag is set automatically when serving over HTTPS.- Rate limiter (240 requests / 60s default) on
POST /ees/track. corsAllowedOriginsoption restricts CORS reflection to the configured list (legacy wildcard preserved when empty).- Security headers on every response.
- Opt-in retention sweeper via
options.retention.
v0.3.3
Changed
- Mobile-friendly admin UI — summary cards reflow, tables scroll inside their card, profile drawer goes full-width.
v0.3.2
Changed
- Republish targeting
@huloglobal/vendure-licence-sdk@^0.2.0.
v0.3.1
Added
UpdateCheckerintegration —/ees/visitors/statusendpoint returns version + update info; admin banner appears on new releases.
v0.3.0
Added
- Conversion goals — new
ConversionGoalentity with a URL-glob matcher (*within segment,**across segments). Pageviews matching a goal are tagged withgoalIdat ingest. CRUD endpoints (GET /ees/goals,POST /ees/goals,PUT /ees/goals/:id,DELETE /ees/goals/:id) andGET /ees/goals/statsfor completion totals per period. - Bot detection — UA-classified
isBotboolean on every event. Default keeps bot events for visibility; newdropBotEventsoption skips ingest entirely. - Privacy controls —
honorDoNotTrack(defaulttrue) —DNT: 1returns{stored:0, skipped:'dnt'}anonymizeIp(defaulttrue) — IPv4 last octet / IPv6 last 80 bits dropped before storage;ipHashstill uses the raw IPrequireConsent(defaultfalse) — gate ingest behind a bodyconsent:trueor cookieees_consent=1
- CSV export —
GET /ees/visitors/export.csv?days=N(max 90).
v0.2.0
Added
- UTM attribution —
utmSource/utmMedium/utmCampaign/utmTerm/utmContentandreferrerDomaincolumns parsed from every incoming pageview URL. NewGET /ees/visitors/sourcesadmin endpoint groups visitors by(source, medium)plus per-source conversion counts (reached product page, reached cart/checkout). - Live-now widget — Server-Sent Events stream at
GET /ees/visitors/livepushing the active-visitor count and the 20 most recent URLs every 5 seconds. SSE clients auto-reconnect. - Top events admin endpoint at
GET /ees/visitors/top-events, paginated. - Custom event recipes — README section with copy-paste storefront snippets for add-to-cart, search, quote-request, newsletter signup.
v0.1.0
Added
VisitorAnalyticsPlugin— ingest endpoint + admin dashboards.VisitorEvententity capturing pageview / unload / event rows with full UA parse, MaxMind geo enrichment, raw + hashed IP.- Proxy-aware IP / country / region extraction (Cloudflare, Akamai, Fastly headers all detected; falls back to MaxMind only if the upstream didn't already resolve country).
- Admin endpoints: summary, top pages (paginated), exit pages (paginated), funnel, recent visitors (paginated), per-visitor profile + journey.
- Admin UI: summary tiles, funnel bars, top + exit page tables, recent visitors table with clickable profile drawer.
- Licence verification via
@huloglobal/vendure-licence-sdkwith revocation polling.
Ready to ship?
Install in five minutes, run the trial on real traffic, keep it if it earns its place.