Plugin Directory

Changeset 1430795


Ignore:
Timestamp:
06/05/2016 10:44:23 AM (10 years ago)
Author:
horike
Message:

update

Location:
simple-ga-ranking/trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • simple-ga-ranking/trunk/README.md

    r1373541 r1430795  
    11# 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
     3This is a WordPress plugin that shows articles ranking using Google Analytics.
     4The feature to work very lightweight, because it is not save ranking data in WordPress DB.
    75
    8 Ranking plugin using data from google analytics.
     6## How to use
     7Please show [the official site](http://simple-ga-ranking.org/)
    98
    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
    5510* English(en) - [megumithemes](http://profiles.wordpress.org/megumithemes/)
    5611* Japanese(ja) - [Horike Takahiro](http://profiles.wordpress.org/horike)
    5712* Thai(th_TH) - [TG Knowledge](http://www.xn--12cg1cxchd0a2gzc1c5d5a.com)
    5813
    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
    6715* [Horike Takahiro](http://profiles.wordpress.org/horike)
    6816* [webnist](https://profiles.wordpress.org/webnist)
    6917* [TG Knowledge](http://www.xn--12cg1cxchd0a2gzc1c5d5a.com)
    7018
    71 # Installation
    72 
    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 # Changelog
    77 = 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.4
    90 = 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 support
    98 = 1.2.15 =
    99 * some fix
    100 = 1.2.16 =
    101 * some fix
    102 = 1.3 =
    103 * add JSON REST API Endpoint
    104 = 1.3.1 =
    105 * some fix
    106 = 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 fix
    112 = 2.0.3 =
    113 * Add some hook.
  • simple-ga-ranking/trunk/readme.txt

    r1411560 r1430795  
    11=== Simple GA Ranking  ===
    2 Contributors: horike,megumithemes
     2Contributors: horike,amimotoami
    33Tags:  form, ranking, popular, google analytics
    44Requires at least: 3.6.1
    55Tested up to: 4.4.2
    6 Stable tag: 2.0.4
     6Stable tag: 2.0.5
    77
    88Ranking plugin using data from google analytics.
     
    115115= 2.0.4 =
    116116* Bug fix.
     117= 2.0.5 =
     118* Add official site link in Plugin header.
  • simple-ga-ranking/trunk/simple-ga-ranking.php

    r1411560 r1430795  
    33Plugin Name: Simple GA Ranking
    44Author: Horike Takahiro
    5 Plugin URI: https://github.com/horike37/simple-ga-ranking
     5Plugin URI: http://simple-ga-ranking.org
    66Description: Ranking plugin using data from google analytics.
    7 Version: 2.0.4
    8 Author URI: https://github.com/horike37/simple-ga-ranking
     7Version: 2.0.5
     8Author URI: http://simple-ga-ranking.org
    99Domain Path: /languages
    1010Text Domain:
    1111
    12 Copyright 2013 horike takahiro (email : horike37@gmail.com)
     12Copyright 2016 horike takahiro (email : horike37@gmail.com)
    1313
    1414This program is free software; you can redistribute it and/or modify
  • simple-ga-ranking/trunk/vendor/autoload.php

    r1168699 r1430795  
    55require_once __DIR__ . '/composer' . '/autoload_real.php';
    66
    7 return ComposerAutoloaderInitbd78f8ae586f9d515571c7a1864e05cc::getLoader();
     7return ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95::getLoader();
  • simple-ga-ranking/trunk/vendor/composer/ClassLoader.php

    r1168699 r1430795  
    1414
    1515/**
    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.
    1917 *
    2018 *     $loader = new \Composer\Autoload\ClassLoader();
     
    4038 * @author Fabien Potencier <fabien@symfony.com>
    4139 * @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/
    4242 */
    4343class ClassLoader
     
    148148     *
    149149     * @param string       $prefix  The prefix/namespace, with trailing '\\'
    150      * @param array|string $paths   The PSR-0 base directories
     150     * @param array|string $paths   The PSR-4 base directories
    151151     * @param bool         $prepend Whether to prepend the directories
    152152     *
  • simple-ga-ranking/trunk/vendor/composer/autoload_real.php

    r1168699 r1430795  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitbd78f8ae586f9d515571c7a1864e05cc
     5class ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInitbd78f8ae586f9d515571c7a1864e05cc', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInitbd78f8ae586f9d515571c7a1864e05cc', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit874f06024197f1033569dfbd01e77d95', 'loadClassLoader'));
    2525
    2626        $map = require __DIR__ . '/autoload_namespaces.php';
     
    4444    }
    4545}
    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  
    199199    public function fetch($from, $to, $metrics, array $args, $view_id = null ){
    200200        if( !$this->ga ){
    201             return new \WP_Error(500, __('Google Analyticsとの連携が完了していません。', 'gapiwp'));
     201            return new \WP_Error(500, __('Google Analtyisとの連携が完了していません。', 'gapiwp'));
    202202        }
    203203        if( is_null($view_id) ){
Note: See TracChangeset for help on using the changeset viewer.