Skip to content

v2.21.0

Choose a tag to compare

@hepeichun hepeichun released this 26 May 08:54
· 45 commits to master since this release

v2.21.0

This release expands DWZ Server from a short-link management tool into a more complete link management platform, with new workspace governance, marketing attribution, link security, advanced routing, richer analytics, and an upgraded admin UI.

Added

  • Added multi-workspace support with Workspace, member management, and role-based access control for owner, admin, member, and viewer.
  • Added X-Workspace-Id support to isolate short links, domains, A/B tests, tokens, operation logs, and click statistics by workspace.
  • Added marketing attribution features: Campaigns, Tags, UTM Builder, link notes, campaign reports, and filtering by campaign, tag, and creator.
  • Added link security controls: password protection, access windows, max-click limits, IP allowlist/blocklist, Bot policy, URL allow/block rules, security events, and public abuse reports.
  • Added advanced link routing by geo location, device, browser, OS, language, Referer, and query parameters.
  • Added fallback URL, route ordering, route testing, and configurable redirect status codes: 301, 302, 307, and 308.
  • Enhanced click analytics with campaign, route, UTM, device, browser, OS, and Bot dimensions.
  • Added geo-level analytics and CSV export for click statistics.
  • Added A/B test conversion feedback. Redirect targets now receive a signed _dwz_abt token, and landing pages can report conversion events such as signups, orders, or purchases.
  • Added A/B test statistics for conversions, conversion rate, conversion value, unique clicks, and winning variant based on real conversion feedback.
  • Updated the admin UI with new workspace, campaign, tag, link security, advanced routing, click statistics, statistics detail, and map dashboard pages.
  • Added GoReleaser Dockerfile support and build metadata injection for version, build time, and Git commit.

Fixed and Improved

  • Fixed fallback URL clearing for advanced routing.
  • Fixed dashboard map label rendering and hidden empty map labels.
  • Fixed geo analytics so map data can return complete region results instead of only top regions.
  • Added an active short-code uniqueness migration per domain to prevent duplicate active short codes.
  • Added X-Workspace-Id to default CORS allowed headers.
  • Redesigned rendered public HTML templates, including redirect, anti-red, password, blocked, expired, error, and 404 pages.
  • Updated API documentation, feature matrix, and roadmap documentation.

Upgrade Notes

  • Run database migrations 0016 through 0023 after upgrading.
  • Existing data is migrated into the default workspace with workspace_id = 1.
  • The new unique index requires active short links to be unique by domain + short_code. Clean up duplicate active records before migration if they exist.
  • Protected APIs now support X-Workspace-Id. If the header is omitted, the server selects the first available workspace for backward compatibility.
  • If you use a custom CORS configuration, make sure X-Workspace-Id is allowed.