{"id":15698234,"url":"https://github.com/log1x/redirection-variables","last_synced_at":"2025-05-08T22:40:31.206Z","repository":{"id":62518644,"uuid":"310449267","full_name":"Log1x/redirection-variables","owner":"Log1x","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-01T17:35:26.000Z","size":607,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T09:40:01.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Log1x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Log1x"}},"created_at":"2020-11-06T00:20:46.000Z","updated_at":"2024-11-12T23:27:53.000Z","dependencies_parsed_at":"2024-06-21T15:38:01.105Z","dependency_job_id":"b760a793-1168-4f4e-a1cb-5fbc35b0b642","html_url":"https://github.com/Log1x/redirection-variables","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fredirection-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fredirection-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fredirection-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fredirection-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Log1x","download_url":"https://codeload.github.com/Log1x/redirection-variables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160727,"owners_count":21863624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T19:24:13.417Z","updated_at":"2025-05-08T22:40:31.188Z","avatar_url":"https://github.com/Log1x.png","language":"PHP","funding_links":["https://github.com/sponsors/Log1x"],"categories":[],"sub_categories":[],"readme":"# Redirection Variables\n\n![Latest Stable Version](https://img.shields.io/packagist/v/log1x/redirection-variables?style=flat-square)\n![Total Downloads](https://img.shields.io/packagist/dt/log1x/redirection-variables?style=flat-square)\n\nRedirection Variables adds a few handy referer tracking variables usable inside of redirects created by the WordPress plugins [Redirection](https://wordpress.org/plugins/redirection/), [Safe Redirect Manager](https://wordpress.org/plugins/safe-redirect-manager/), and [Pretty Links](https://wordpress.org/plugins/pretty-link/).\n\nThis can be particularly useful for passing tracking data from your referring posts/pages to affiliate URL's.\n\n## Requirements\n\n- [PHP](https://secure.php.net/manual/en/install.php) \u003e= 8.1\n- [Composer](https://getcomposer.org/download/)\n\n## Installation\n\n### Bedrock\n\nInstall via Composer:\n\n```bash\n$ composer require log1x/redirection-variables\n```\n\n### Manual\n\nDownload the release `.zip` and install into `wp-content/plugins`.\n\n## Usage\n\nAn example redirect URL destination would look something like:\n\n```py\n/go/google -\u003e https://www.google.com/?example=%source%\u0026example2=%post_name%\n```\n\n### Variables\n\n| Variable        | Description                                                                          | Example Value             | Default Value |\n| :-------------- | :----------------------------------------------------------------------------------- | :------------------------ | :------------ |\n| `%source%`      | The referring page source determined by `utm_source` or the `HTTP_REFERER` variable. | google                    | direct        |\n| `%medium%`      | The referring page medium determined by `utm_medium`.                                | search                    | organic       |\n| `%campaign%`    | The referring page campaign determined by `utm_campaign`.                            | summer-sale               | unknown       |\n| `%term%`        | The referring page campaign determined by `utm_term`.                                | fish-oil                  | unknown       |\n| `%content%`     | The referring page content determined by `utm_content`.                              | cta-link                  | unknown       |\n| `%adgroup%`     | The referring page adgroup determined by `utm_adgroup`.                              | ppc-1                     | unknown       |\n| `%search_term%` | The referring page search term passed by various search engines.                     | Best Fish Oil             | unknown       |\n| `%gclid%`       | The referring page gclid passed by Google Ads.                                       | lorem-1234                | unknown       |\n| `%post_id%`     | The referring page post ID.                                                          | 17                        | unknown       |\n| `%post_title%`  | The referring page post title.                                                       | the-best-fish-oil-of-2020 | unknown       |\n| `%post_name%`   | The referring page post name (slug).                                                 | best-fish-oil             | unknown       |\n\n## Bug Reports\n\nIf you discover a bug in Redirection Variables, please [open an issue](https://github.com/log1x/redirection-variables/issues).\n\n## Contributing\n\nContributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.\n\n## License\n\nRedirection Variables is provided under the [MIT License](https://github.com/log1x/redirection-variables/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Fredirection-variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog1x%2Fredirection-variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Fredirection-variables/lists"}