

<strong>All Links</strong>, admin list with search, filters, status views, and bulk actions
GT Link Manager is a free WordPress link manager and URL shortener for branded short links, affiliate link management, country-based redirects, and opt-in click analytics. Create reusable links, find out where they are clicked, and manage them from the WordPress admin, block editor, or REST API. There are no premium tiers or upsells.
Redirects use indexed custom database tables and resolve before theme templates load. Advanced Analytics adds no visitor tracking scripts, cookies, or beacon requests.
Your links follow a clean URL pattern: yoursite.com/go/your-slug (the prefix is configurable and can even be removed on individual links).
Official Page & Documentation | Free Training Course | REST API & AI Tools Guide
Advanced Analytics adds reports alongside the existing lifetime click counter. It stays off until you explicitly enable it under GT Links > Analytics > Settings. No analytics tables, options, records or maintenance jobs are created before opt-in.
Collection uses a compact server-side write on eligible GET redirects. PHP-FPM can finish the redirect response before recording the event; other hosts complete that write synchronously. No visitor JavaScript, cookies, beacons, IP storage, fingerprinting or external analytics service is added. Referring URLs omit credentials, query strings and fragments; raw user agents are not retained.
Recognized bots, prefetches and signed-in link managers are excluded. These reports count eligible redirect requests, not unique people or conversions. Browsers may report an external website, only its origin, or no referrer. Earlier clicks without page information remain Page unavailable, with a short explanation. External referrers are kept and explained rather than automatically treated as spam.
Reports and page-specific breakdowns are summarized by a bounded maintenance worker. Keep WordPress cron or a system scheduler running. Storage and processing safeguards can pause collection while preserving existing reports. Historical data can be viewed in date windows of up to ninety days. Advanced Analytics currently supports single-site installations.
The Privacy and data section links to WordPress’s suggested Privacy Policy text. Administrators control analytics by default; developers can use gtlm_analytics_capability for report access and gtlm_analytics_should_record to suppress events, including consent integrations. Site-owner opt-in is not a legal consent exemption.
GT Link Manager stores links in custom database tables, not custom post types. Redirect resolution runs on init at priority 0 using a UNIQUE-indexed slug lookup, before theme templates load. Missing, inactive and trashed branded short links return a real 404 instead of serving the homepage.
init (priority 0) via direct DB lookup, no CPT overheadnofollow, sponsored, and ugc per link for proper SEO attributionX-Robots-Tag: noindex header to prevent search engines from indexing redirect URLs/go/, or use regular expressions and capture groups for more complex rules. Protected WordPress endpoints cannot be claimed by redirect rules.gtlm_before_redirect and send events to GA4, Plausible, Fathom, Matomo, or Simple AnalyticsGT Link Manager provides a comprehensive set of hooks for customization:
gtlm_before_redirect, action fired before redirect (use for click tracking or logging)gtlm_redirect_url, filter to modify the destination URLgtlm_redirect_code, filter to modify the HTTP status codegtlm_rel_attributes, filter to modify rel attribute valuesgtlm_headers, filter to modify redirect response headersgtlm_prefix, filter to override the URL prefixgtlm_capabilities, filter to override the required user capabilitygtlm_cache_ttl, filter to set object cache TTL for link lookupsgtlm_geo_country, filter the detected country code (plug in any detection method you like)gtlm_geo_sources, filter the list of request variables checked for a countrygtlm_geo_country_groups, filter country groups usable in rules (ships with EU)gtlm_geo_matched_rule, filter the resolved geo rule before the redirect is sentgtlm_geo_blocked, action fired when a visitor is blocked by a geo rule’s 404 fallbackgtlm_link_not_found, action fired when a prefixed link cannot be resolved and a 404 is sentgtlm_404_on_missing_link, filter to disable the 404 for unresolved prefixed links and fall through to WordPress insteadgtlm_trash_purged, action fired after trashed links are automatically purged, with the count and retention windowgtlm_count_click, filter to skip counting a particular click (exclude logged-in editors, add bot filtering)gtlm_click_recorded, action fired after a click has been countedgtlm_analytics_should_record, filter to suppress an advanced analytics eventgtlm_analytics_capability, filter the capability required to view analytics reportsBasic click counting is off by default. Enable it under GT Links > Settings to keep one lifetime total per link. It stores no visitor details, IP addresses, user agents, referrers or timestamps. With basic counts and Advanced Analytics both off, GT Link Manager stores no request analytics.
Counts appear in the sortable Clicks column, the read-only REST API total_clicks field and CSV exports. Use Reset Clicks for a single link or gtlm_count_click to exclude requests. When Advanced Analytics is enabled, a count links to that link’s report.
Updates are atomic. PHP-FPM can finish the response before recording a count; other hosts write synchronously. Basic totals and dated analytics have independent settings. Choose consent requirements according to your site and integrations.
The GT Link Manager Training course covers getting started, managing links, categories, settings, the redirect system, block editor integration, import and export, geolocation targeting, REST API endpoints, hooks, filters and troubleshooting.
Useful references:
The full source, including the compiled block editor assets’ source code, is on GitHub. See Releases for builds and changelogs.
Use the WordPress.org support forum for help or GitHub Issues for bugs. Include your WordPress and PHP versions, link slug, configured prefix, expected behavior and any CDN or page cache. Send security reports privately to the maintainer.
CSV export keeps your links portable, including geo rules and advanced redirect configuration. Uninstall removes data only when you enable that option. There are no Pro tiers, trials, required accounts, telemetry or upsell notices.
GT Link Manager does not perform automatic keyword linking. Country detection depends on a trusted CDN or server header; a header supplied directly by a visitor can be forged. Basic counts measure requests, while Advanced Analytics adds eligible-click reports; neither identifies unique visitors or verifies conversions.
The Developer Reference includes step-by-step integration guides for:
GT Link Manager has a full REST API that works with AI tools for programmatic link management. The REST API & AI Tools Guide covers authentication setup, all available endpoints, and integration with AI platforms including Claude Code, OpenAI Codex, WP-MCP, Novamira, Claudeus WordPress MCP, and WordPress MCP Adapter. Settings includes a copyable setup prompt that asks the AI to read the guide, reuse supplied configuration and request missing details.
The block editor assets (blocks/link-inserter/build/) are compiled from the source at blocks/link-inserter/src/ using @wordpress/scripts. The full source code is available in this plugin and on GitHub at https://github.com/wpgaurav/gt-link-manager.
To build from source:
cd blocks/link-inserter && npm install && npm run build