Contestify Cookie Redirect
This plugin helps route users to a designated application if a specific login cookie is set.
by George Nnanwubar (Manndi Technologies Limited) · github.com/georgennanwubar/wp-cookie-redirect · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/georgennanwubar/wp-cookie-redirect/archive/refs/heads/main.zipCookie Redirect (Contestify Cookie Redirect)
A WordPress plugin that redirects logged-in users to a configurable destination when a specific login cookie is present — with role exclusions, GA4 analytics, redirect logging, and admin milestone alerts.
Version: 2.0 · Stack: PHP, WordPress · License: GPL-2.0-or-later
What it does
Acts as a cookie-gated gateway: visitors carrying a configured login cookie are routed to a target URL (originally an app subdomain, now fully configurable), while excluded roles and the admin area are left untouched. Every redirect is counted and logged.
Key technical details
- Cookie name/value, destination URL, excluded roles, and analytics are all admin-configurable options — the destination is settings-driven, not hardcoded.
- GA4 integration: client-side gtag plus a server-side Measurement Protocol fallback (Measurement ID + API secret entered in settings).
- Redirect counter, timestamp/IP logging, and CSV export; optional admin email alerts on redirect-count milestones.
- Full settings panel; safe-guards against firing in admin/AJAX contexts.
Note: although named for its original deployment (contestify.io), the redirect target is a settings field — the plugin works as a general-purpose cookie-gated redirect.
Installation
- Copy to
wp-content/plugins/wp-cookie-redirect/and activate. - Configure the cookie, destination URL, exclusions, and GA4 under Settings → Contestify Redirect.
Built by
George Nnanwubar — george.ng · github.com/georgennanwubar · Manndi Technologies