內容簡介
Kitgenix Affiliate Link Manager 是一款輕量化的聯盟行銷連結管理外掛,讓你在 WordPress 控制台中集中建立、管理短網址,並透過自訂前綴(預設為 /go/{slug})在站內完成轉址,同時追蹤點擊次數,無需依賴第三方短網址服務。
【主要功能】
• 建立短網址並自訂名稱、代稱與目標網址
• 自訂轉址前綴(預設為 go)
• 支援 301、302、307 三種轉址狀態碼
• 內建每條連結的點擊次數追蹤
• 可設定 rel 屬性(nofollow / sponsored)符合 SEO 規範
• 站內自行處理轉址,無需第三方服務
外掛標籤
開發者團隊
② 後台搜尋「Kitgenix Affiliate Link Manager」→ 直接安裝(推薦)
原文外掛簡介
Affiliate URLs can get long, messy, and hard to manage — especially once they’re embedded across pages, posts, emails, and ads.
Kitgenix Affiliate Link Manager gives you a simple, central place to create and manage short affiliate links, and redirect visitors using a clean URL format:
/go/{slug} (prefix configurable)
It’s designed to be lightweight and practical:
– Create links with a Name, Slug and Destination URL
– Configure the redirect prefix (default: go)
– Choose redirect status: 307, 302 or 301
– Track click counts per link
– No third-party redirect/short-link service (redirects happen on your site)
SEO note: you can choose a per-link rel value (nofollow / sponsored / both). When placing your short URL into content, use sponsored/nofollow to follow search engine guidelines for affiliate links.
Notes
This plugin stores links in a private custom post type and performs redirects via WordPress rewrite rules.
After changing the redirect prefix, you may need to re-save Permalinks (Settings → Permalinks) to ensure rewrite rules are refreshed.
Quick Start
Install and activate the plugin.
Go to Kitgenix → Affiliate Links.
Add a link (Name + Destination URL + optional custom slug).
Copy the generated short URL and use it anywhere.
Developers
Text domain:
kitgenix-affiliate-link-manager
Custom post type:
– kitgenix_aff_link
Post meta:
– Destination URL: _kitgenix_affiliate_destination_url
– Click count: _kitgenix_affiliate_clicks
– Rel value: _kitgenix_affiliate_rel (allowed: nofollow, sponsored, nofollow sponsored)
Settings option:
– kitgenix_affiliate_link_manager_settings
Settings group (Settings API):
– kitgenix_affiliate_link_manager_settings_group
Redirect query var:
– kitgenix_affiliate_slug
Admin actions / nonces:
– Admin-post action (save): admin_post_kitgenix_affiliate_link_save
– Admin-post action (delete): admin_post_kitgenix_affiliate_link_delete
– Link save nonce action: kitgenix_affiliate_link_save
– Link save nonce field name: kitgenix_affiliate_link_nonce
– Link delete nonce action: kitgenix_affiliate_link_delete
– Link delete nonce query arg: nonce
– Settings save nonce action: kitgenix_affiliate_link_manager_settings_save
– Settings save nonce field name: kitgenix_affiliate_link_manager_settings_nonce
Settings UI field identifiers:
– Redirect status id: kitgenix_affiliate_redirect_status
External Services
This plugin includes a shared “Kitgenix hub” component in wp-admin which may fetch publicly available plugin metadata from WordPress.org using WordPress core’s plugins_api() function.
Caching:
– Transient: kitgenix_hub_wporg_active_installs_v1
– Transient: kitgenix_hub_wporg_ratings_v1
Redirect destinations:
– When a visitor uses a short URL like /go/{slug}, the plugin redirects them to the destination URL you configured for that link. Destination URLs are commonly on third-party domains (affiliate programs).
Security & Privacy
No tracking cookies are added.
Admin actions are protected with capability checks and nonces.
Redirect destinations are validated before redirect.
Uninstall
Uninstall removes only plugin settings and plugin-only transients (but does not delete stored affiliate link posts or click data).
Deleted:
– Option: kitgenix_affiliate_link_manager_settings
– Transient: kitgenix_affiliate_link_manager_do_activation_redirect
– Transient (short-lived): kitgenix_affiliate_link_manager_do_rewrite_flush
Support Development
If this plugin saves you time managing affiliate URLs, you can support ongoing development here:
https://buymeacoffee.com/kitgenix
Credits
Built with ❤︎ by @kitgenix – https://kitgenix.com
