Changeset 1430795
- Timestamp:
- 06/05/2016 10:44:23 AM (10 years ago)
- Location:
- simple-ga-ranking/trunk
- Files:
-
- 1 added
- 7 edited
-
README.md (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
simple-ga-ranking.php (modified) (1 diff)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (3 diffs)
-
vendor/composer/LICENSE (added)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/hametuha/gapiwp/src/Hametuha/GapiWP/Service/Analytics.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-ga-ranking/trunk/README.md
r1373541 r1430795 1 1 # Simple GA Ranking 2 Contributors: horike,megumithemes 3 Tags: form, ranking, popular, google analytics 4 Requires at least: 3.6.1 5 Tested up to: 4.4 6 Stable tag: 2.0.3 2 ## Overview 3 This is a WordPress plugin that shows articles ranking using Google Analytics. 4 The feature to work very lightweight, because it is not save ranking data in WordPress DB. 7 5 8 Ranking plugin using data from google analytics. 6 ## How to use 7 Please show [the official site](http://simple-ga-ranking.org/) 9 8 10 # Description 11 12 Ranking plugin using data from google analytics. 13 14 = How use = 15 1. Set your Google analytics account and so on at the Simple GA Ranking's option page (Settings->Simple GA Ranking). 16 17 2. Put the short code at where you'd like to show the ranking. 18 19 3. You can use many kind of filters by post-type or taxonomy. For example, you can show only posts and pages by `[sga_ranking post_type="post,page"]`. Also, showing posts in only WordPress category by `[sga_ranking post_type="post" category__in="wordpress"]`. 20 21 4. The short code supports parameters as follows: `post_type`, `exclude_post_type`, `'taxonomy_slug'__in`, `'taxonomy_slug'__not_in`, filter. All parameters except “filter” need to be set the slug(s). 22 23 - post_type: set the attribute of the slug of the post-type you’d like to show. You can set multiple sulgs separeted by comma. 24 25 - exclude_post_type: set the attribute of the post-type you’d NOT like to show. You can set multiple sulgs separeted by comma. 26 27 - 'taxonomy_slug'__in: set the attribute of the taxonomy you’d like to show. You can set multiple terms separeted by comma. 28 29 - 'taxonomy_slug'__not_in: set the attribute of the taxonomy you’d NOT like to show. You can set multiple terms separeted by comma. 30 31 - filter: You can use the filter parameter as same as the fileter parameter of Google Analytics API. 32 [https://developers.google.com/analytics/devguides/reporting/core/v3/reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference) 33 34 For example, suppose you have a multi-languages site with direcotry based multisite, and take the statistic of all sites of the multisite having with the URL structure as follows by one GA account. 35 http://example.com/ja 36 http://example.com/en 37 http://example.com/cn 38 39 When you’d like to take the statistic of each site, revise like below. 40 [sga_ranking filter="pagePath=~^/ja/"] 41 [sga_ranking filter="pagePath=~^/en/"] 42 [sga_ranking filter="pagePath=~^/cn/"] 43 44 Please try ohter parameters using the below sites as a reference. 45 [https://support.google.com/analytics/answer/1034324?hl=en](https://support.google.com/analytics/answer/1034324?hl=en) 46 [https://developers.google.com/analytics/devguides/reporting/core/v3/reference?hl=en](https://developers.google.com/analytics/devguides/reporting/core/v3/reference?hl=en) 47 48 You can use JSON REST API Endpoint. Require plugin [JSON REST API](https://wordpress.org/plugins/json-rest-api/) 49 `http://example.com/wp-json/ranking` 50 `http://example.com/wp-json/ranking?filter[display_count]=10` 51 `http://example.com/wp-json/ranking?filter[period]=7` 52 53 54 # Translators 9 ## Translators 55 10 * English(en) - [megumithemes](http://profiles.wordpress.org/megumithemes/) 56 11 * Japanese(ja) - [Horike Takahiro](http://profiles.wordpress.org/horike) 57 12 * Thai(th_TH) - [TG Knowledge](http://www.xn--12cg1cxchd0a2gzc1c5d5a.com) 58 13 59 You can send your own language pack to me. 60 61 Please contact to me. 62 63 * @[horike37](http://twitter.com/horike37) on twitter 64 * [Horike Takahiro](https://www.facebook.com/horike.takahiro) on facebook 65 66 # Contributors 14 ## Contributors 67 15 * [Horike Takahiro](http://profiles.wordpress.org/horike) 68 16 * [webnist](https://profiles.wordpress.org/webnist) 69 17 * [TG Knowledge](http://www.xn--12cg1cxchd0a2gzc1c5d5a.com) 70 18 71 # Installation72 73 1. Upload `simple-ga-ranking` to the `/wp-content/plugins/` directory.74 2. Activate the plugin through the 'Plugins' menu in WordPress.75 76 # Changelog77 = 1.0 =78 * first release.79 = 1.1 =80 * Apply widget.81 = 1.2.2 =82 * Metric change visitors to pageviews.83 * fixed a bug that custom post type.84 = 1.2.3 =85 * Add filter parameter.86 = 1.2.4 =87 * Add test mode.`define('SGA_RANKING_TEST_MODE', true);` on wp-config.php.88 = 1.2.5 =89 * fixed a bug that ver 1.2.490 = 1.2.6 =91 * test mode can set on option page.92 = 1.2.9 =93 * Update readme.txt.94 = 1.2.12 =95 * add filter `sga_widget_shortcode_argument`.96 = 1.2.14 =97 * Thai support98 = 1.2.15 =99 * some fix100 = 1.2.16 =101 * some fix102 = 1.3 =103 * add JSON REST API Endpoint104 = 1.3.1 =105 * some fix106 = 2.0 =107 * OAuth2 authorization available. ClientLogin is no longer available.108 = 2.0.1 =109 * Add some hook.110 = 2.0.2 =111 * some fix112 = 2.0.3 =113 * Add some hook. -
simple-ga-ranking/trunk/readme.txt
r1411560 r1430795 1 1 === Simple GA Ranking === 2 Contributors: horike, megumithemes2 Contributors: horike,amimotoami 3 3 Tags: form, ranking, popular, google analytics 4 4 Requires at least: 3.6.1 5 5 Tested up to: 4.4.2 6 Stable tag: 2.0. 46 Stable tag: 2.0.5 7 7 8 8 Ranking plugin using data from google analytics. … … 115 115 = 2.0.4 = 116 116 * Bug fix. 117 = 2.0.5 = 118 * Add official site link in Plugin header. -
simple-ga-ranking/trunk/simple-ga-ranking.php
r1411560 r1430795 3 3 Plugin Name: Simple GA Ranking 4 4 Author: Horike Takahiro 5 Plugin URI: http s://github.com/horike37/simple-ga-ranking5 Plugin URI: http://simple-ga-ranking.org 6 6 Description: Ranking plugin using data from google analytics. 7 Version: 2.0. 48 Author URI: http s://github.com/horike37/simple-ga-ranking7 Version: 2.0.5 8 Author URI: http://simple-ga-ranking.org 9 9 Domain Path: /languages 10 10 Text Domain: 11 11 12 Copyright 201 3horike takahiro (email : horike37@gmail.com)12 Copyright 2016 horike takahiro (email : horike37@gmail.com) 13 13 14 14 This program is free software; you can redistribute it and/or modify -
simple-ga-ranking/trunk/vendor/autoload.php
r1168699 r1430795 5 5 require_once __DIR__ . '/composer' . '/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit bd78f8ae586f9d515571c7a1864e05cc::getLoader();7 return ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95::getLoader(); -
simple-ga-ranking/trunk/vendor/composer/ClassLoader.php
r1168699 r1430795 14 14 15 15 /** 16 * ClassLoader implements a PSR-0 class loader 17 * 18 * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md 16 * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. 19 17 * 20 18 * $loader = new \Composer\Autoload\ClassLoader(); … … 40 38 * @author Fabien Potencier <fabien@symfony.com> 41 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see http://www.php-fig.org/psr/psr-0/ 41 * @see http://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader … … 148 148 * 149 149 * @param string $prefix The prefix/namespace, with trailing '\\' 150 * @param array|string $paths The PSR- 0base directories150 * @param array|string $paths The PSR-4 base directories 151 151 * @param bool $prepend Whether to prepend the directories 152 152 * -
simple-ga-ranking/trunk/vendor/composer/autoload_real.php
r1168699 r1430795 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit bd78f8ae586f9d515571c7a1864e05cc5 class ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit bd78f8ae586f9d515571c7a1864e05cc', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit bd78f8ae586f9d515571c7a1864e05cc', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95', 'loadClassLoader')); 25 25 26 26 $map = require __DIR__ . '/autoload_namespaces.php'; … … 44 44 } 45 45 } 46 47 function composerRequirebd78f8ae586f9d515571c7a1864e05cc($file)48 {49 require $file;50 } -
simple-ga-ranking/trunk/vendor/hametuha/gapiwp/src/Hametuha/GapiWP/Service/Analytics.php
r1411560 r1430795 199 199 public function fetch($from, $to, $metrics, array $args, $view_id = null ){ 200 200 if( !$this->ga ){ 201 return new \WP_Error(500, __('Google Anal yticsとの連携が完了していません。', 'gapiwp'));201 return new \WP_Error(500, __('Google Analtyisとの連携が完了していません。', 'gapiwp')); 202 202 } 203 203 if( is_null($view_id) ){
Note: See TracChangeset
for help on using the changeset viewer.