{"id":13524361,"url":"https://github.com/interfasys/piwik-yourls","last_synced_at":"2025-04-01T02:31:17.238Z","repository":{"id":5193754,"uuid":"6368796","full_name":"interfasys/piwik-yourls","owner":"interfasys","description":"A Piwik plugin for YOURLS","archived":false,"fork":false,"pushed_at":"2023-11-01T12:35:03.000Z","size":198,"stargazers_count":28,"open_issues_count":8,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T06:16:32.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dodola/BubbleCloudView","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interfasys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-24T11:27:30.000Z","updated_at":"2023-12-13T00:12:23.000Z","dependencies_parsed_at":"2022-09-23T13:10:50.673Z","dependency_job_id":null,"html_url":"https://github.com/interfasys/piwik-yourls","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interfasys%2Fpiwik-yourls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interfasys%2Fpiwik-yourls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interfasys%2Fpiwik-yourls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interfasys%2Fpiwik-yourls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interfasys","download_url":"https://codeload.github.com/interfasys/piwik-yourls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222693039,"owners_count":17024034,"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-08-01T06:01:09.290Z","updated_at":"2024-11-02T08:31:42.034Z","avatar_url":"https://github.com/interfasys.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["P"],"readme":"# PIWIK-YOURLS\n\nA [Piwik](http://piwik.org/) plugin for [YOURLS](http://yourls.org)\n\n## Features\n\n* Logs all requests with Piwik\n* Tracks IP and custom variables\n* Lets you disable local tracking/stats\n* Includes \"Don't Log Bots\" from OZH\n\n\n## Requirements\n\n* PHP 5.3\n* PiwikTracker.php from your Piwik installation\n\n## Setup\n\n### YOURLS\n* Pull the files to \u003cyourls_root\u003e/user/plugins/piwik\n* Place PiwikTracker.php into the \u003cyourls_root\u003e/user/plugins/piwik/libs/Piwik folder\n* Activate the plugin in the admin zone of YOURLS\n* Go to the plugin page and fill in the required fields\n\nIf you want better alert messages, you need to [apply this change](https://code.google.com/p/yourls/source/detail?r=787) to your YOURLS installation.\n\n### Piwik\n\n* Create a test \"website\" and use that at the beginning until you find the right way to log your hits\n* Create or assign an admin auth token to that site\n* Visit some of your links\n* Check the hits on the \"Visitors in real-time\" widget\n\n## Modifications\n\nIf you're not happy with the way hits are tracked, just change the way the plugin does it by editing:\n\n\t\t// This shows up in the visitor logs and identify the source of the data\n\t\t$pt-\u003esetCustomVariable(1, 'App', 'Piwik plugin for YOURLS', 'visit');\n\n\t\t// Some useful variables\n\t\t$pt-\u003esetCustomVariable(2, 'Domain landed', $domain_landed, 'page');\n\t\t$pt-\u003esetCustomVariable(3, 'Keyword', $keyword, 'page');\n\n\t\t// Track the visit in Piwik\n\t\t$title = yourls_get_keyword_title($keyword);\n\t\t@$pt-\u003edoTrackPageView($title);\n\n\t\t// The destination URL will show up as an outlink\n\t\t@$pt-\u003edoTrackAction($destination, 'link');\n\nin plugin.php, function \"itfs_piwik_log_request\"\n\n\n## Inspiration\n\n * Piwik plugin thread: https://code.google.com/p/yourls/issues/detail?id=661\n * Google Analytics plugin: http://www.seodenver.com/yourls-analytics/\n * WP-Piwik Wordpress plugin: http://wordpress.org/extend/plugins/wp-piwik/\n\n## License\n\nCopyright 2012 - interfaSys sàrl - www.interfasys.ch\n\nLicensed under the GNU Affero General Public License, version 3 (AGPLv3) (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n`http://www.gnu.org/licenses/agpl-3.0.html`\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterfasys%2Fpiwik-yourls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterfasys%2Fpiwik-yourls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterfasys%2Fpiwik-yourls/lists"}